Home
last modified time | relevance | path

Searched refs:pkey1 (Results 1 – 3 of 3) sorted by relevance

/openssl/test/
H A Dectest.c2821 EVP_PKEY *pkey1 = NULL, *pkey2 = NULL; in custom_params_test() local
2976 if (!TEST_ptr(pkey1 = EVP_PKEY_new()) in custom_params_test()
2977 || !TEST_int_eq(EVP_PKEY_assign_EC_KEY(pkey1, eckey1), 1)) in custom_params_test()
2986 if (!TEST_ptr(pctx1 = EVP_PKEY_CTX_new(pkey1, NULL)) in custom_params_test()
2995 || !TEST_int_eq(EVP_PKEY_derive_set_peer(pctx2, pkey1), 1) in custom_params_test()
3035 || !TEST_int_eq(EVP_PKEY_fromdata(pctx2, &pkey1, EVP_PKEY_KEYPAIR, in custom_params_test()
3043 if (!TEST_ptr(pctx1 = EVP_PKEY_CTX_new(pkey1, NULL)) in custom_params_test()
3073 EVP_PKEY_free(pkey1); in custom_params_test()
H A Devp_extra_test.c3509 EVP_PKEY *pkey1 = NULL, *pkey2 = NULL; in test_EVP_PKEY_set1_DH() local
3531 pkey1 = EVP_PKEY_new(); in test_EVP_PKEY_set1_DH()
3535 || !TEST_ptr(pkey1) in test_EVP_PKEY_set1_DH()
3541 if (!TEST_true(EVP_PKEY_set1_DH(pkey1, x942dh)) in test_EVP_PKEY_set1_DH()
3542 || !TEST_int_eq(EVP_PKEY_get_id(pkey1), EVP_PKEY_DHX)) in test_EVP_PKEY_set1_DH()
3545 if (!TEST_true(EVP_PKEY_get_bn_param(pkey1, OSSL_PKEY_PARAM_PUB_KEY, in test_EVP_PKEY_set1_DH()
3565 EVP_PKEY_free(pkey1); in test_EVP_PKEY_set1_DH()
/openssl/apps/
H A Dcmp.c1620 EVP_PKEY *pkey1; in set_fallback_pubkey() local
1642 pkey1 = EVP_PKEY_dup(pkey); in set_fallback_pubkey()
1643 if (pkey == NULL || !OSSL_CMP_CTX_set0_newPkey(ctx, 0 /* priv */, pkey1)) { in set_fallback_pubkey()
1644 EVP_PKEY_free(pkey1); in set_fallback_pubkey()

Completed in 30 milliseconds