Searched refs:pkpeer (Results 1 – 2 of 2) sorted by relevance
/openssl/crypto/cms/ |
H A D | cms_ec.c | 80 EVP_PKEY *pkpeer = NULL; in ecdh_cms_set_peerkey() local 96 pkpeer = EVP_PKEY_new(); in ecdh_cms_set_peerkey() 97 if (pkpeer == NULL) in ecdh_cms_set_peerkey() 99 if (!EVP_PKEY_copy_parameters(pkpeer, pk)) in ecdh_cms_set_peerkey() 102 pkpeer = pkey_type2param(atype, aval, in ecdh_cms_set_peerkey() 105 if (pkpeer == NULL) in ecdh_cms_set_peerkey() 114 if (EVP_PKEY_set1_encoded_public_key(pkpeer, p, plen) <= 0) in ecdh_cms_set_peerkey() 117 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) in ecdh_cms_set_peerkey() 120 EVP_PKEY_free(pkpeer); in ecdh_cms_set_peerkey()
|
H A D | cms_dh.c | 28 EVP_PKEY *pkpeer = NULL, *pk = NULL; in dh_cms_set_peerkey() local 65 pkpeer = EVP_PKEY_new(); in dh_cms_set_peerkey() 66 if (pkpeer == NULL in dh_cms_set_peerkey() 67 || !EVP_PKEY_copy_parameters(pkpeer, pk) in dh_cms_set_peerkey() 68 || EVP_PKEY_set1_encoded_public_key(pkpeer, buf, plen) <= 0) in dh_cms_set_peerkey() 71 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) in dh_cms_set_peerkey() 77 EVP_PKEY_free(pkpeer); in dh_cms_set_peerkey()
|
Completed in 12 milliseconds