mirror of
https://github.com/espressif/mbedtls.git
synced 2025-05-09 19:31:18 +08:00
Allow skipping 3DES in CMAC self-test when ALT implemented
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
parent
4ad0967125
commit
146e7fc5fa
@ -867,11 +867,12 @@ static int cmac_test_wth_cipher( int verbose,
|
|||||||
{
|
{
|
||||||
/* When CMAC is implemented by an alternative implementation, or
|
/* When CMAC is implemented by an alternative implementation, or
|
||||||
* the underlying primitive itself is implemented alternatively,
|
* the underlying primitive itself is implemented alternatively,
|
||||||
* AES-192 may be unavailable. This should not cause the selftest
|
* AES-192 and/or 3DES may be unavailable. This should not cause
|
||||||
* function to fail. */
|
* the selftest function to fail. */
|
||||||
if( ( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED ||
|
if( ( ret == MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED ||
|
||||||
ret == MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) &&
|
ret == MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE ) &&
|
||||||
cipher_type == MBEDTLS_CIPHER_AES_192_ECB ) {
|
( cipher_type == MBEDTLS_CIPHER_AES_192_ECB ||
|
||||||
|
cipher_type == MBEDTLS_CIPHER_DES_EDE3_ECB ) ) {
|
||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
mbedtls_printf( "skipped\n" );
|
mbedtls_printf( "skipped\n" );
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user