Home
last modified time | relevance | path

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

/openssl/test/
H A Devp_pkey_dhkem_test.c54 t->spub, t->spublen))) in test_dhkem_encapsulate()
68 EVP_PKEY *rpriv = NULL, *spub = NULL; in test_dhkem_decapsulate() local
71 TEST_note("Test %s %s Decapsulate", t->curve, t->spub != NULL ? "Auth" : ""); in test_dhkem_decapsulate()
76 if (t->spub != NULL) { in test_dhkem_decapsulate()
77 if (!TEST_ptr(spub = new_raw_public_key(t->curve, t->spub, t->spublen))) in test_dhkem_decapsulate()
80 ret = do_decap(t, rpriv, spub); in test_dhkem_decapsulate()
82 EVP_PKEY_free(spub); in test_dhkem_decapsulate()
H A Ddhkem_test.inc40 const unsigned char *spub;
689 static int do_decap(const TEST_ENCAPDATA *t, EVP_PKEY *rpriv, EVP_PKEY *spub)
698 if (t->spub == NULL) {
702 if (!TEST_int_eq(EVP_PKEY_auth_decapsulate_init(recipctx, spub,
/openssl/crypto/hpke/
H A Dhpke.c553 EVP_PKEY *spub = NULL; in hpke_decap() local
585 spub = evp_pkey_new_raw_nist_public_key(ctx->libctx, ctx->propq, in hpke_decap()
590 spub = EVP_PKEY_new_raw_public_key_ex(ctx->libctx, in hpke_decap()
596 if (spub == NULL) { in hpke_decap()
600 if (EVP_PKEY_auth_decapsulate_init(pctx, spub, params) != 1) { in hpke_decap()
627 EVP_PKEY_free(spub); in hpke_decap()

Completed in 16 milliseconds