Add checked return to cipher setup

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-12-09 18:27:01 +00:00
parent 620cbb9bf5
commit 68b64cd64c

View File

@ -102,7 +102,7 @@ void cipher_invalid_param_unconditional( )
(void)valid_mode; /* In some configurations this is unused */
mbedtls_cipher_init( &valid_ctx );
mbedtls_cipher_setup( &valid_ctx, valid_info );
TEST_ASSERT( mbedtls_cipher_setup( &valid_ctx, valid_info ) == 0 );
mbedtls_cipher_init( &invalid_ctx );
/* mbedtls_cipher_setup() */