mirror of
https://github.com/cuberite/polarssl.git
synced 2025-09-08 23:03:06 -04:00
Have selftest print more information about the AESNI build
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
e0c75342fc
commit
20458c0963
@ -1846,7 +1846,15 @@ int mbedtls_aes_self_test(int verbose)
|
|||||||
#endif
|
#endif
|
||||||
#if defined(MBEDTLS_AESNI_HAVE_CODE)
|
#if defined(MBEDTLS_AESNI_HAVE_CODE)
|
||||||
if (mbedtls_aesni_has_support(MBEDTLS_AESNI_AES)) {
|
if (mbedtls_aesni_has_support(MBEDTLS_AESNI_AES)) {
|
||||||
mbedtls_printf(" AES note: using AESNI.\n");
|
mbedtls_printf(" AES note: using AESNI via ");
|
||||||
|
#if MBEDTLS_AESNI_HAVE_CODE == 1
|
||||||
|
mbedtls_printf("assembly");
|
||||||
|
#elif MBEDTLS_AESNI_HAVE_CODE == 2
|
||||||
|
mbedtls_printf("intrinsics");
|
||||||
|
#else
|
||||||
|
mbedtls_printf("(unknown)");
|
||||||
|
#endif
|
||||||
|
mbedtls_printf(".\n");
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
mbedtls_printf(" AES note: built-in implementation.\n");
|
mbedtls_printf(" AES note: built-in implementation.\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user