remove padlock only mode

padlock depends on pure c implementation

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2023-08-04 16:28:22 +08:00
parent 29c91ba42d
commit b241db3e26
2 changed files with 4 additions and 6 deletions

View File

@ -33,7 +33,10 @@
#if defined(MBEDTLS_HAVE_X86) #if defined(MBEDTLS_HAVE_X86)
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY) #if defined(MBEDTLS_AES_USE_HARDWARE_ONLY)
#error "MBEDTLS_PADLOCK_C defined, but not all prerequisites"
#endif
/* /*
* PadLock detection routine * PadLock detection routine
*/ */
@ -63,7 +66,6 @@ int mbedtls_padlock_has_support(int feature)
return flags & feature; return flags & feature;
} }
#endif
/* /*
* PadLock AES-ECB block en(de)cryption * PadLock AES-ECB block en(de)cryption

View File

@ -69,11 +69,7 @@ extern "C" {
* *
* \return non-zero if CPU has support for the feature, 0 otherwise * \return non-zero if CPU has support for the feature, 0 otherwise
*/ */
#if !defined(MBEDTLS_AES_USE_HARDWARE_ONLY)
int mbedtls_padlock_has_support(int feature); int mbedtls_padlock_has_support(int feature);
#else
#define /* no-check-names */ mbedtls_padlock_has_support(feature) 1
#endif
/** /**
* \brief Internal PadLock AES-ECB block en(de)cryption * \brief Internal PadLock AES-ECB block en(de)cryption