Lines Matching refs:peer_key
5202 static zend_string *php_openssl_pkey_derive(EVP_PKEY *key, EVP_PKEY *peer_key, size_t key_size) { in php_openssl_pkey_derive() argument
5209 EVP_PKEY_derive_set_peer(ctx, peer_key) <= 0 || in php_openssl_pkey_derive()
5232 EVP_PKEY *peer_key = EVP_PKEY_new(); in php_openssl_dh_compute_key() local
5233 if (!peer_key || EVP_PKEY_copy_parameters(peer_key, pkey) <= 0 || in php_openssl_dh_compute_key()
5234 EVP_PKEY_set1_encoded_public_key(peer_key, (unsigned char *) pub_str, pub_len) <= 0) { in php_openssl_dh_compute_key()
5236 EVP_PKEY_free(peer_key); in php_openssl_dh_compute_key()
5240 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, 0); in php_openssl_dh_compute_key()
5241 EVP_PKEY_free(peer_key); in php_openssl_dh_compute_key()
5314 EVP_PKEY *peer_key = php_openssl_pkey_from_zval(peer_pub_key, 1, NULL, 0, 1); in PHP_FUNCTION() local
5315 if (!peer_key) { in PHP_FUNCTION()
5320 zend_string *result = php_openssl_pkey_derive(pkey, peer_key, key_len); in PHP_FUNCTION()
5322 EVP_PKEY_free(peer_key); in PHP_FUNCTION()