mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-06-03 13:08:18 +00:00
Improve psa_hash_update negative test
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
d73e1b0ccd
commit
54f7351d12
|
@ -1620,7 +1620,7 @@ void hash_bad_order( )
|
||||||
|
|
||||||
/* Check that update calls abort on error. */
|
/* Check that update calls abort on error. */
|
||||||
PSA_ASSERT( psa_hash_setup( &operation, alg ) );
|
PSA_ASSERT( psa_hash_setup( &operation, alg ) );
|
||||||
operation.ctx.mbedtls_ctx.alg = PSA_ALG_XTS;
|
operation.id = UINT_MAX;
|
||||||
ASSERT_OPERATION_IS_ACTIVE( operation );
|
ASSERT_OPERATION_IS_ACTIVE( operation );
|
||||||
TEST_EQUAL( psa_hash_update( &operation, input, sizeof( input ) ),
|
TEST_EQUAL( psa_hash_update( &operation, input, sizeof( input ) ),
|
||||||
PSA_ERROR_BAD_STATE );
|
PSA_ERROR_BAD_STATE );
|
||||||
|
|
Loading…
Reference in a new issue