Hi, There is a PR to add a new function called openssl_pkey_derive to openssl extension:
https://github.com/php/php-src/pull/3197 The purpose is to derive public key algorithm shared secret. I think it's a reasonable addition and if there are no objections, I will merge it in the next two weeks. More info can be found in the PR or in the OpenSSL documentation for EVP_PKEY_derive: https://www.openssl.org/docs/man1.1.0/crypto/EVP_PKEY_derive.html Cheers Jakub