From e8eb7de792a791b6bbb443d54276631b873f8df2 Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Wed, 1 May 2024 11:22:45 -0400 Subject: [PATCH] ppc64le: EVP_has_aes_hardware is false w/ no-asm (#1566) ### Issues: * CryptoAlg-2425 ### Description of changes: * On ppc64le, `EVP_has_aes_hardware` should return false when `OPENSSL_NO_ASM` flag is set. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license. --- crypto/fipsmodule/cipher/e_aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/fipsmodule/cipher/e_aes.c b/crypto/fipsmodule/cipher/e_aes.c index 3f68e1b49b..60921abaa0 100644 --- a/crypto/fipsmodule/cipher/e_aes.c +++ b/crypto/fipsmodule/cipher/e_aes.c @@ -1738,7 +1738,7 @@ int EVP_has_aes_hardware(void) { #elif defined(OPENSSL_ARM) || defined(OPENSSL_AARCH64) return hwaes_capable() && CRYPTO_is_ARMv8_PMULL_capable(); #elif defined(OPENSSL_PPC64LE) - return CRYPTO_is_PPC64LE_vcrypto_capable(); + return hwaes_capable() && CRYPTO_is_PPC64LE_vcrypto_capable(); #else return 0; #endif