Skip to content
Commit d5b3c0e2 authored by Ingo Franzki's avatar Ingo Franzki Committed by Tomas Mraz
Browse files

s390x: Fix HMAC digest detection



Use EVP_MD_is_a() instead of EVP_MD_get_type() to detect the digest
type. EVP_MD_get_type() does not always return the expected NID, e.g.
when running in the FIPS provider, EVP_MD_get_type() returns zero,
causing to skip the HMAC acceleration path.

Signed-off-by: default avatarIngo Franzki <ifranzki@linux.ibm.com>

Reviewed-by: default avatarPaul Dale <ppzgs1@gmail.com>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25304)
parent 0cd9dd70
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment