mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-01-06 11:41:12 +03:00
Add option to disable built-in aes implementation.
For time being, there are only two aes implementations for known architectures. I define runtime detection function as const when built-in was disabled. In this case, compiler will remove dead built-in code. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
@@ -99,6 +99,7 @@
|
||||
#include <sys/auxv.h>
|
||||
#endif
|
||||
|
||||
#if !defined(MBEDTLS_AES_HAS_NO_BUILTIN)
|
||||
/*
|
||||
* AES instruction support detection routine
|
||||
*/
|
||||
@@ -113,6 +114,7 @@ int mbedtls_aesce_has_support(void)
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Single round of AESCE encryption */
|
||||
#define AESCE_ENCRYPT_ROUND \
|
||||
|
||||
Reference in New Issue
Block a user