chunk 7 of CMP contribution to OpenSSL