mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-26 03:35:35 +00:00
Test aes_free( NULL ) unconditionally
This commit is contained in:
parent
54e7f312d3
commit
a4251f4775
@ -394,13 +394,15 @@ void aes_invalid_param( )
|
|||||||
|
|
||||||
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_AES_BAD_INPUT_DATA,
|
TEST_INVALID_PARAM_RET( MBEDTLS_ERR_AES_BAD_INPUT_DATA,
|
||||||
mbedtls_aes_setkey_dec( &dummy_ctx, NULL, 128 ) );
|
mbedtls_aes_setkey_dec( &dummy_ctx, NULL, 128 ) );
|
||||||
|
}
|
||||||
|
/* END_CASE */
|
||||||
|
|
||||||
|
/* BEGIN_CASE */
|
||||||
|
void aes_valid_param( )
|
||||||
|
{
|
||||||
/* These calls accept NULL */
|
/* These calls accept NULL */
|
||||||
TEST_VALID_PARAM( mbedtls_aes_free( NULL ) );
|
TEST_VALID_PARAM( mbedtls_aes_free( NULL ) );
|
||||||
TEST_VALID_PARAM( mbedtls_aes_xts_free( NULL ) );
|
TEST_VALID_PARAM( mbedtls_aes_xts_free( NULL ) );
|
||||||
|
|
||||||
exit:
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
|
||||||
|
@ -13,6 +13,9 @@ aes_decrypt_cbc:"000000000000000000000000000000000000000000000000000000000000000
|
|||||||
AES - Invalid parameters
|
AES - Invalid parameters
|
||||||
aes_invalid_param:
|
aes_invalid_param:
|
||||||
|
|
||||||
|
AES - Valid parameters
|
||||||
|
aes_valid_param:
|
||||||
|
|
||||||
AES Selftest
|
AES Selftest
|
||||||
depends_on:MBEDTLS_SELF_TEST
|
depends_on:MBEDTLS_SELF_TEST
|
||||||
aes_selftest:
|
aes_selftest:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user