Lines Matching refs:evp_md
54 static int HKDF(OSSL_LIB_CTX *libctx, const EVP_MD *evp_md,
59 static int HKDF_Extract(OSSL_LIB_CTX *libctx, const EVP_MD *evp_md,
63 static int HKDF_Expand(const EVP_MD *evp_md,
455 static int HKDF(OSSL_LIB_CTX *libctx, const EVP_MD *evp_md, in HKDF() argument
465 sz = EVP_MD_get_size(evp_md); in HKDF()
471 if (!HKDF_Extract(libctx, evp_md, in HKDF()
476 ret = HKDF_Expand(evp_md, prk, prk_len, info, info_len, okm, okm_len); in HKDF()
506 static int HKDF_Extract(OSSL_LIB_CTX *libctx, const EVP_MD *evp_md, in HKDF_Extract() argument
511 int sz = EVP_MD_get_size(evp_md); in HKDF_Extract()
521 EVP_Q_mac(libctx, "HMAC", NULL, EVP_MD_get0_name(evp_md), NULL, salt, in HKDF_Extract()
522 salt_len, ikm, ikm_len, prk, EVP_MD_get_size(evp_md), NULL) in HKDF_Extract()
565 static int HKDF_Expand(const EVP_MD *evp_md, in HKDF_Expand() argument
576 sz = EVP_MD_get_size(evp_md); in HKDF_Expand()
592 if (!HMAC_Init_ex(hmac, prk, prk_len, evp_md, NULL)) in HKDF_Expand()