Lines Matching refs:evp_md
20 static unsigned char *HKDF(const EVP_MD *evp_md,
26 static unsigned char *HKDF_Extract(const EVP_MD *evp_md,
31 static unsigned char *HKDF_Expand(const EVP_MD *evp_md,
257 static unsigned char *HKDF(const EVP_MD *evp_md, in HKDF() argument
267 if (!HKDF_Extract(evp_md, salt, salt_len, key, key_len, prk, &prk_len)) in HKDF()
270 ret = HKDF_Expand(evp_md, prk, prk_len, info, info_len, okm, okm_len); in HKDF()
276 static unsigned char *HKDF_Extract(const EVP_MD *evp_md, in HKDF_Extract() argument
283 if (!HMAC(evp_md, salt, salt_len, key, key_len, prk, &tmp_len)) in HKDF_Extract()
290 static unsigned char *HKDF_Expand(const EVP_MD *evp_md, in HKDF_Expand() argument
302 size_t done_len = 0, dig_len = EVP_MD_size(evp_md); in HKDF_Expand()
314 if (!HMAC_Init_ex(hmac, prk, prk_len, evp_md, NULL)) in HKDF_Expand()