Lines Matching refs:md

128 static int fips_digest_check_passed(KDF_SSHKDF *ctx, const EVP_MD *md)  in fips_digest_check_passed()  argument
138 int digest_unapproved = !EVP_MD_is_a(md, SN_sha1) in fips_digest_check_passed()
139 && !EVP_MD_is_a(md, SN_sha224) in fips_digest_check_passed()
140 && !EVP_MD_is_a(md, SN_sha256) in fips_digest_check_passed()
141 && !EVP_MD_is_a(md, SN_sha384) in fips_digest_check_passed()
142 && !EVP_MD_is_a(md, SN_sha512); in fips_digest_check_passed()
176 const EVP_MD *md; in kdf_sshkdf_derive() local
181 md = ossl_prov_digest_md(&ctx->digest); in kdf_sshkdf_derive()
182 if (md == NULL) { in kdf_sshkdf_derive()
203 return SSHKDF(md, ctx->key, ctx->key_len, in kdf_sshkdf_derive()
226 const EVP_MD *md = NULL; in kdf_sshkdf_set_ctx_params() local
231 md = ossl_prov_digest_md(&ctx->digest); in kdf_sshkdf_set_ctx_params()
232 if (EVP_MD_xof(md)) { in kdf_sshkdf_set_ctx_params()
238 if (!fips_digest_check_passed(ctx, md)) in kdf_sshkdf_set_ctx_params()
343 EVP_MD_CTX *md = NULL; in SSHKDF() local
349 md = EVP_MD_CTX_new(); in SSHKDF()
350 if (md == NULL) in SSHKDF()
353 if (!EVP_DigestInit_ex(md, evp_md, NULL)) in SSHKDF()
356 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
359 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
362 if (!EVP_DigestUpdate(md, &type, 1)) in SSHKDF()
365 if (!EVP_DigestUpdate(md, session_id, session_id_len)) in SSHKDF()
368 if (!EVP_DigestFinal_ex(md, digest, &dsize)) in SSHKDF()
381 if (!EVP_DigestInit_ex(md, evp_md, NULL)) in SSHKDF()
384 if (!EVP_DigestUpdate(md, key, key_len)) in SSHKDF()
387 if (!EVP_DigestUpdate(md, xcghash, xcghash_len)) in SSHKDF()
390 if (!EVP_DigestUpdate(md, okey, cursize)) in SSHKDF()
393 if (!EVP_DigestFinal_ex(md, digest, &dsize)) in SSHKDF()
408 EVP_MD_CTX_free(md); in SSHKDF()