Update comment to only apply to AES-192
Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
parent
03f40849c5
commit
c7da6a48dd
1 changed files with 4 additions and 4 deletions
|
@ -783,8 +783,8 @@ static int cmac_test_subkeys( 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,
|
||||||
* certain features (e.g. AES-192) may be unavailable. This should
|
* AES-192 may be unavailable. This should not cause the selftest
|
||||||
* not cause the selftest function to fail. */
|
* 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 ) {
|
||||||
|
@ -867,8 +867,8 @@ 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,
|
||||||
* certain features (e.g. AES-192) may be unavailable. This should
|
* AES-192 may be unavailable. This should not cause the selftest
|
||||||
* not cause the selftest function to fail. */
|
* 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 ) {
|
||||||
|
|
Loading…
Reference in a new issue