Searched refs:pkpeer (Results 1 – 2 of 2) sorted by relevance
619 EVP_PKEY *pkpeer = NULL, *pk = NULL; in dh_cms_set_peerkey() local657 pkpeer = EVP_PKEY_new(); in dh_cms_set_peerkey()658 if (pkpeer == NULL) in dh_cms_set_peerkey()661 EVP_PKEY_assign(pkpeer, pk->ameth->pkey_id, dhpeer); in dh_cms_set_peerkey()663 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) in dh_cms_set_peerkey()667 EVP_PKEY_free(pkpeer); in dh_cms_set_peerkey()
658 EVP_PKEY *pkpeer = NULL; in ecdh_cms_set_peerkey() local690 pkpeer = EVP_PKEY_new(); in ecdh_cms_set_peerkey()691 if (pkpeer == NULL) in ecdh_cms_set_peerkey()693 EVP_PKEY_set1_EC_KEY(pkpeer, ecpeer); in ecdh_cms_set_peerkey()694 if (EVP_PKEY_derive_set_peer(pctx, pkpeer) > 0) in ecdh_cms_set_peerkey()698 EVP_PKEY_free(pkpeer); in ecdh_cms_set_peerkey()