Searched refs:privk (Results 1 – 3 of 3) sorted by relevance
/openssl/demos/keyexch/ |
H A D | x25519.c | 52 EVP_PKEY *privk; /* privk generated for peer */ member 73 local_peer->privk = in keyexch_x25519_before() 78 local_peer->privk = EVP_PKEY_Q_keygen(libctx, propq, "X25519"); in keyexch_x25519_before() 80 if (local_peer->privk == NULL) { in keyexch_x25519_before() 86 if (EVP_PKEY_get_octet_string_param(local_peer->privk, in keyexch_x25519_before() 105 EVP_PKEY_free(local_peer->privk); in keyexch_x25519_before() 106 local_peer->privk = NULL; in keyexch_x25519_before() 139 ctx = EVP_PKEY_CTX_new_from_pkey(libctx, local_peer->privk, propq); in keyexch_x25519_after() 259 EVP_PKEY_free(peer1.privk); in keyexch_x25519() 260 EVP_PKEY_free(peer2.privk); in keyexch_x25519()
|
/openssl/providers/implementations/exchange/ |
H A D | ecdh_exch.c | 480 EC_KEY *privk = NULL; in ecdh_plain_derive() local 529 if ((privk = EC_KEY_dup(pecdhctx->k)) == NULL) in ecdh_plain_derive() 533 EC_KEY_set_flags(privk, EC_FLAG_COFACTOR_ECDH); in ecdh_plain_derive() 538 EC_KEY_clear_flags(privk, EC_FLAG_COFACTOR_ECDH); in ecdh_plain_derive() 541 privk = pecdhctx->k; in ecdh_plain_derive() 564 retlen = ECDH_compute_key(secret, size, ppubkey, privk, NULL); in ecdh_plain_derive() 573 if (privk != pecdhctx->k) in ecdh_plain_derive() 574 EC_KEY_free(privk); in ecdh_plain_derive()
|
/openssl/test/ |
H A D | evp_test.c | 3930 EVP_PKEY *privk; member 3969 data->privk = pk; in keypair_test_init() 3999 if (pair->privk == NULL || pair->pubk == NULL) { in keypair_test_run() 4010 if ((rv = EVP_PKEY_eq(pair->privk, pair->pubk)) != 1) { in keypair_test_run()
|
Completed in 26 milliseconds