chunk 5 of CMP contribution to OpenSSL