Home
last modified time | relevance | path

Searched refs:kdfctx (Results 1 – 4 of 4) sorted by relevance

/openssl/providers/implementations/exchange/
H A Dkdf_exch.c41 EVP_KDF_CTX *kdfctx; member
47 PROV_KDF_CTX *kdfctx; in kdf_newctx() local
54 if (kdfctx == NULL) in kdf_newctx()
57 kdfctx->provctx = provctx; in kdf_newctx()
62 kdfctx->kdfctx = EVP_KDF_CTX_new(kdf); in kdf_newctx()
65 if (kdfctx->kdfctx == NULL) in kdf_newctx()
68 return kdfctx; in kdf_newctx()
70 OPENSSL_free(kdfctx); in kdf_newctx()
135 EVP_KDF_CTX_free(pkdfctx->kdfctx); in kdf_freectx()
155 dstctx->kdfctx = EVP_KDF_CTX_dup(srcctx->kdfctx); in kdf_dupctx()
[all …]
/openssl/crypto/
H A Ddeterministic_nonce.c188 EVP_KDF_CTX *kdfctx = NULL; in ossl_gen_deterministic_nonce_rfc6979() local
219 kdfctx = kdf_setup(digestname, entropyx, rlen, nonceh, rlen, libctx, propq); in ossl_gen_deterministic_nonce_rfc6979()
220 if (kdfctx == NULL) in ossl_gen_deterministic_nonce_rfc6979()
224 if (!EVP_KDF_derive(kdfctx, rbits, rlen, NULL) in ossl_gen_deterministic_nonce_rfc6979()
237 EVP_KDF_CTX_free(kdfctx); in ossl_gen_deterministic_nonce_rfc6979()
/openssl/providers/implementations/kem/
H A Decx_kem.c342 EVP_KDF_CTX *kdfctx = NULL; in ossl_ecx_dhkem_derive_private() local
355 kdfctx = ossl_kdf_ctx_create("HKDF", info->mdname, ecx->libctx, ecx->propq); in ossl_ecx_dhkem_derive_private()
356 if (kdfctx == NULL) in ossl_ecx_dhkem_derive_private()
362 if (!ossl_hpke_labeled_extract(kdfctx, prk, info->Nsecret, in ossl_ecx_dhkem_derive_private()
367 if (!ossl_hpke_labeled_expand(kdfctx, privout, info->Nsk, prk, info->Nsecret, in ossl_ecx_dhkem_derive_private()
374 EVP_KDF_CTX_free(kdfctx); in ossl_ecx_dhkem_derive_private()
478 EVP_KDF_CTX *kdfctx = NULL; in derive_secret() local
512 kdfctx = ossl_kdf_ctx_create(ctx->kdfname, info->mdname, in derive_secret()
514 if (kdfctx == NULL) in derive_secret()
516 if (!dhkem_extract_and_expand(kdfctx, secret, info->Nsecret, in derive_secret()
[all …]
H A Dec_kem.c385 EVP_KDF_CTX *kdfctx = NULL; in ossl_ec_dhkem_derive_private() local
401 kdfctx = ossl_kdf_ctx_create("HKDF", info->mdname, in ossl_ec_dhkem_derive_private()
404 if (kdfctx == NULL) in ossl_ec_dhkem_derive_private()
418 if (!ossl_hpke_labeled_extract(kdfctx, prk, info->Nsecret, in ossl_ec_dhkem_derive_private()
425 if (!ossl_hpke_labeled_expand(kdfctx, privbuf, info->Nsk, in ossl_ec_dhkem_derive_private()
444 EVP_KDF_CTX_free(kdfctx); in ossl_ec_dhkem_derive_private()
567 EVP_KDF_CTX *kdfctx = NULL; in derive_secret() local
609 kdfctx = ossl_kdf_ctx_create(ctx->kdfname, info->mdname, in derive_secret()
611 if (kdfctx == NULL) in derive_secret()
613 if (!dhkem_extract_and_expand(kdfctx, secret, info->Nsecret, in derive_secret()
[all …]

Completed in 20 milliseconds