1
0
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:
Jerry Yu
2023-03-31 14:32:47 +08:00
parent 9661f8ab0d
commit 0d4f4e5b01
7 changed files with 24 additions and 1 deletions

View File

@@ -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 \