mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-25 13:43:31 +00:00
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:
parent
29c91ba42d
commit
b241db3e26
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user