]> git.ipfire.org Git - thirdparty/openssl.git/commit
s390x: Fix HMAC digest detection
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 28 Aug 2024 12:56:33 +0000 (14:56 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 2 Sep 2024 08:23:22 +0000 (10:23 +0200)
commitd5b3c0e24bc56614e92ffafdd705622beaef420a
treec9db2ca80e6287b8fe26e3c4ffa3f8856d4e2ae0
parent0cd9dd703ea575699b2d3cd74f1b8224447f4352
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: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25304)
crypto/hmac/hmac_s390x.c