mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 11:15:39 +01:00
Add missing cleanup to hash multipart operation tests
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
cd65f4ccac
commit
34f063ca47
@ -31,6 +31,7 @@ void hash_finish( int alg_arg, data_t *input, data_t *expected_hash )
|
|||||||
actual_hash, actual_hash_length );
|
actual_hash, actual_hash_length );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
psa_hash_abort( &operation );
|
||||||
PSA_DONE( );
|
PSA_DONE( );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
@ -52,6 +53,7 @@ void hash_verify( int alg_arg, data_t *input, data_t *expected_hash )
|
|||||||
expected_hash->len ) );
|
expected_hash->len ) );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
psa_hash_abort( &operation );
|
||||||
PSA_DONE( );
|
PSA_DONE( );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
@ -95,6 +97,8 @@ void hash_multi_part( int alg_arg, data_t *input, data_t *expected_hash )
|
|||||||
} while( len++ != input->len );
|
} while( len++ != input->len );
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
|
psa_hash_abort( &operation );
|
||||||
|
psa_hash_abort( &operation2 );
|
||||||
PSA_DONE( );
|
PSA_DONE( );
|
||||||
}
|
}
|
||||||
/* END_CASE */
|
/* END_CASE */
|
||||||
|
Loading…
Reference in New Issue
Block a user