revert padlock from aesni module

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-08-18 17:35:59 +08:00
parent 61fc5ed5f3
commit 0a6272d6c9
2 changed files with 2 additions and 4 deletions

View file

@ -39,8 +39,7 @@
#include <immintrin.h>
#endif
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY) || \
(defined(MBEDTLS_HAVE_X86) && defined(MBEDTLS_PADLOCK_C))
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY)
/*
* AES-NI support detection routine
*/

View file

@ -100,8 +100,7 @@ extern "C" {
*
* \return 1 if CPU has support for the feature, 0 otherwise
*/
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY) || \
(defined(MBEDTLS_HAVE_X86) && defined(MBEDTLS_PADLOCK_C))
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY)
int mbedtls_aesni_has_support(unsigned int what);
#else
#define mbedtls_aesni_has_support(what) 1