chunk 6 of CMP contribution to OpenSSL