Lines Matching refs:dup_pk
353 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL; in test_fromdata_rsa() local
420 if (!ret || dup_pk != NULL) in test_fromdata_rsa()
423 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_rsa()
425 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_rsa()
427 pk = dup_pk; in test_fromdata_rsa()
464 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL; in do_fromdata_rsa_derive() local
519 if (dup_pk != NULL) in do_fromdata_rsa_derive()
522 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in do_fromdata_rsa_derive()
524 if (!TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1)) { 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()
904 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL; in test_fromdata_dh_named_group() local
1083 if (!ret || dup_pk != NULL) in test_fromdata_dh_named_group()
1086 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_dh_named_group()
1088 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_dh_named_group()
1090 pk = dup_pk; in test_fromdata_dh_named_group()
1118 EVP_PKEY *pk = NULL, *dup_pk = NULL; in test_fromdata_dh_fips186_4() local
1261 if (!ret || dup_pk != NULL) in test_fromdata_dh_fips186_4()
1264 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_dh_fips186_4()
1266 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_dh_fips186_4()
1268 pk = dup_pk; in test_fromdata_dh_fips186_4()
1316 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL; in test_fromdata_ecx() local
1553 if (!ret || dup_pk != NULL) in test_fromdata_ecx()
1556 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_ecx()
1558 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_ecx()
1560 pk = dup_pk; in test_fromdata_ecx()
1579 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL; in test_fromdata_ec() local
1750 if (!ret || dup_pk != NULL) in test_fromdata_ec()
1753 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_ec()
1755 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_ec()
1757 pk = dup_pk; in test_fromdata_ec()
1851 EVP_PKEY *pk = NULL, *copy_pk = NULL, *dup_pk = NULL; in test_fromdata_dsa_fips186_4() local
2081 if (!ret || dup_pk != NULL) in test_fromdata_dsa_fips186_4()
2084 if (!TEST_ptr(dup_pk = EVP_PKEY_dup(pk))) in test_fromdata_dsa_fips186_4()
2086 ret = ret && TEST_int_eq(EVP_PKEY_eq(pk, dup_pk), 1); in test_fromdata_dsa_fips186_4()
2088 pk = dup_pk; in test_fromdata_dsa_fips186_4()