Lines Matching refs:peer_key
5000 static zend_string *php_openssl_pkey_derive(EVP_PKEY *key, EVP_PKEY *peer_key, size_t key_size) { in php_openssl_pkey_derive() argument
5007 EVP_PKEY_derive_set_peer(ctx, peer_key) <= 0 || in php_openssl_pkey_derive()
5030 EVP_PKEY *peer_key = EVP_PKEY_new(); in php_openssl_dh_compute_key() local
5031 if (!peer_key || EVP_PKEY_copy_parameters(peer_key, pkey) <= 0 || in php_openssl_dh_compute_key()
5032 EVP_PKEY_set1_encoded_public_key(peer_key, (unsigned char *) pub_str, pub_len) <= 0) { in php_openssl_dh_compute_key()
5034 EVP_PKEY_free(peer_key); in php_openssl_dh_compute_key()
5038 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, 0); in php_openssl_dh_compute_key()
5039 EVP_PKEY_free(peer_key); in php_openssl_dh_compute_key()
5112 EVP_PKEY *peer_key = php_openssl_pkey_from_zval(peer_pub_key, 1, NULL, 0, 1); in PHP_FUNCTION() local
5113 if (!peer_key) { in PHP_FUNCTION()
5118 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, key_len); in PHP_FUNCTION()
5120 EVP_PKEY_free(peer_key); in PHP_FUNCTION()