selftest supports cmac if only MBEDTLS_DES_C is defined

Other minor typo fixes
This commit is contained in:
Brian Murray 2016-05-19 16:38:36 -07:00 committed by Simon Butcher
parent 3d3c9b8be7
commit 86ff986884
5 changed files with 95 additions and 62 deletions

View file

@ -587,6 +587,8 @@ void mbedtls_strerror( int ret, char *buf, size_t buflen )
mbedtls_snprintf( buf, buflen, "CMAC - Bad input parameters to function" );
if( use_ret == -(MBEDTLS_ERR_CMAC_VERIFY_FAILED) )
mbedtls_snprintf( buf, buflen, "CMAC - Verification failed" );
if( use_ret == -(MBEDTLS_ERR_CMAC_ALLOC_FAILED) )
mbedtls_snprintf( buf, buflen, "CMAC - Failed to allocate memory" );
#endif /* MBEDTLS_CMAC_C */
#if defined(MBEDTLS_CTR_DRBG_C)