Minor fixes to formatting and compilation conditions

This commit is contained in:
Simon Butcher 2016-10-06 10:27:22 +01:00
parent f394e09431
commit ea680197f8
2 changed files with 7 additions and 6 deletions

View file

@ -501,7 +501,8 @@ int main( int argc, char *argv[] )
memset( buf, 0, sizeof( buf ) ); memset( buf, 0, sizeof( buf ) );
memset( tmp, 0, sizeof( tmp ) ); memset( tmp, 0, sizeof( tmp ) );
TIME_AND_TSC( "AES-CMAC-PRF-128", TIME_AND_TSC( "AES-CMAC-PRF-128",
mbedtls_aes_cmac_prf_128( tmp, 16, buf, BUFSIZE, output ) ); mbedtls_aes_cmac_prf_128( tmp, 16, buf, BUFSIZE,
output ) );
} }
#endif /* MBEDTLS_CMAC_C */ #endif /* MBEDTLS_CMAC_C */
#endif /* MBEDTLS_AES_C */ #endif /* MBEDTLS_AES_C */

View file

@ -278,7 +278,7 @@ int main( int argc, char *argv[] )
suites_tested++; suites_tested++;
#endif #endif
#if defined(MBEDTLS_CMAC_C) && ( defined(MBEDTLS_AES_C) || defined(MBEDTLS_DES_C) ) #if defined(MBEDTLS_CMAC_C)
if( ( mbedtls_cmac_self_test( v ) ) != 0 ) if( ( mbedtls_cmac_self_test( v ) ) != 0 )
{ {
suites_failed++; suites_failed++;