Skip to content

Commit

Permalink
ppc64le: EVP_has_aes_hardware is false w/ no-asm (#1566)
Browse files Browse the repository at this point in the history
### 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.
justsmth authored May 1, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent d726d06 commit e8eb7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/fipsmodule/cipher/e_aes.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e8eb7de

Please sign in to comment.