Searched refs:dup_pk (Results 1 – 6 of 6) sorted by relevance
/openssl/test/ |
H A D | evp_pkey_provided_test.c | 420 if (!ret || dup_pk != NULL) in test_fromdata_rsa() 427 pk = dup_pk; in test_fromdata_rsa() 519 if (dup_pk != NULL) in do_fromdata_rsa_derive() 525 EVP_PKEY_free(dup_pk); in do_fromdata_rsa_derive() 529 pk = dup_pk; in do_fromdata_rsa_derive() 1083 if (!ret || dup_pk != NULL) in test_fromdata_dh_named_group() 1090 pk = dup_pk; in test_fromdata_dh_named_group() 1268 pk = dup_pk; in test_fromdata_dh_fips186_4() 1560 pk = dup_pk; in test_fromdata_ecx() 1757 pk = dup_pk; in test_fromdata_ec() [all …]
|
H A D | keymgmt_internal_test.c | 148 EVP_PKEY *pk = NULL, *dup_pk = NULL; in test_pass_rsa() local 259 if (!ret || dup_pk != NULL) in test_pass_rsa() 262 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_pass_rsa() 265 ret = TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_pass_rsa() 267 pk = dup_pk; in test_pass_rsa()
|
H A D | evp_libctx_test.c | 118 EVP_PKEY *pkey = NULL, *dup_pk = NULL; in test_dsa_param_keygen() local 164 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pkey)) in test_dsa_param_keygen() 165 || !TEST_int_eq(EVP_PKEY_eq(pkey, dup_pk), 1)) in test_dsa_param_keygen() 172 EVP_PKEY_free(dup_pk); in test_dsa_param_keygen() 190 EVP_PKEY *pkey = NULL, *dup_pk = NULL; in do_dh_param_keygen() local 227 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pkey)) in do_dh_param_keygen() 228 || !TEST_int_eq(EVP_PKEY_eq(pkey, dup_pk), 1)) in do_dh_param_keygen() 235 EVP_PKEY_free(dup_pk); in do_dh_param_keygen()
|
H A D | ecdsatest.c | 193 EVP_PKEY *pkey_neg = NULL, *pkey = NULL, *dup_pk = NULL; in test_builtin() local 240 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pkey)) in test_builtin() 241 || !TEST_int_eq(EVP_PKEY_eq(pkey, dup_pk), 1)) in test_builtin() 332 EVP_PKEY_free(dup_pk); in test_builtin()
|
H A D | evp_extra_test.c | 1366 EVP_PKEY *pkey = NULL, *dup_pk = NULL; in test_EC_priv_only_legacy() local 1404 if (dup_pk != NULL) in test_EC_priv_only_legacy() 1407 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pkey))) in test_EC_priv_only_legacy() 1410 ret = TEST_int_eq(EVP_PKEY_eq(pkey, dup_pk), -2); in test_EC_priv_only_legacy() 1412 pkey = dup_pk; in test_EC_priv_only_legacy()
|
/openssl/crypto/evp/ |
H A D | p_lib.c | 1682 EVP_PKEY *dup_pk; in EVP_PKEY_dup() local 1689 if ((dup_pk = EVP_PKEY_new()) == NULL) in EVP_PKEY_dup() 1696 if (!evp_keymgmt_util_copy(dup_pk, pkey, in EVP_PKEY_dup() 1707 && EVP_PKEY_set_type(dup_pk, pkey->type) != 0) in EVP_PKEY_dup() 1712 if (!ameth->copy(dup_pk, pkey)) in EVP_PKEY_dup() 1721 &dup_pk->ex_data, &pkey->ex_data)) in EVP_PKEY_dup() 1725 if ((dup_pk->attributes = ossl_x509at_dup(pkey->attributes)) == NULL) in EVP_PKEY_dup() 1728 return dup_pk; in EVP_PKEY_dup() 1730 EVP_PKEY_free(dup_pk); in EVP_PKEY_dup()
|
Completed in 41 milliseconds