From 6f7105818cdc4a8a01f39ea65ce1121195bf525c Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Thu, 24 Jun 2021 18:14:52 +0100 Subject: [PATCH] Improve psa_hash_update negative test Signed-off-by: Dave Rodgman --- tests/suites/test_suite_psa_crypto.function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function index 34d038b6b9..41e29729b5 100644 --- a/tests/suites/test_suite_psa_crypto.function +++ b/tests/suites/test_suite_psa_crypto.function @@ -1559,7 +1559,7 @@ void hash_bad_order( ) /* Check that update calls abort on error. */ PSA_ASSERT( psa_hash_setup( &operation, alg ) ); - operation.ctx.mbedtls_ctx.alg = PSA_ALG_XTS; + operation.id = UINT_MAX; ASSERT_OPERATION_IS_ACTIVE( operation ); TEST_EQUAL( psa_hash_update( &operation, input, sizeof( input ) ), PSA_ERROR_BAD_STATE );