mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Print out AESNI mechanism used by GCM in self-test
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
@ -760,7 +760,15 @@ int mbedtls_gcm_self_test(int verbose)
|
||||
#else /* MBEDTLS_GCM_ALT */
|
||||
#if defined(MBEDTLS_AESNI_HAVE_CODE)
|
||||
if (mbedtls_aesni_has_support(MBEDTLS_AESNI_CLMUL)) {
|
||||
mbedtls_printf(" GCM note: using AESNI.\n");
|
||||
mbedtls_printf(" GCM 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
|
||||
#endif
|
||||
mbedtls_printf(" GCM note: built-in implementation.\n");
|
||||
|
Reference in New Issue
Block a user