mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-28 19:21:08 +00:00
Fix error in psa_crypto test suite
The cipher_bad_order test happened to pass, but was not testing the failure case it intended to test. Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
36ff66c4b4
commit
095dadc5bc
@ -2305,6 +2305,7 @@ void cipher_bad_order( )
|
||||
PSA_ASSERT( psa_cipher_abort( &operation ) );
|
||||
|
||||
/* Call update without an IV where an IV is required. */
|
||||
PSA_ASSERT( psa_cipher_encrypt_setup( &operation, key, alg ) );
|
||||
TEST_EQUAL( psa_cipher_update( &operation,
|
||||
text, sizeof( text ),
|
||||
buffer, sizeof( buffer ),
|
||||
|
Loading…
x
Reference in New Issue
Block a user