tests: driver wrappers: Improve test comments

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron 2021-05-04 16:11:06 +02:00
parent 1459b7af04
commit 9fac4ea4a6

View file

@ -1168,7 +1168,7 @@ void hash_multipart_update( int alg_arg,
PSA_ASSERT( psa_crypto_init( ) ); PSA_ASSERT( psa_crypto_init( ) );
/* /*
* Update none active operation, the driver shouldn't be called. * Update inactive operation, the driver shouldn't be called.
*/ */
TEST_EQUAL( psa_hash_update( &operation, input->x, input->len ), TEST_EQUAL( psa_hash_update( &operation, input->x, input->len ),
PSA_ERROR_BAD_STATE ); PSA_ERROR_BAD_STATE );
@ -1224,7 +1224,7 @@ void hash_multipart_finish( int alg_arg,
PSA_ASSERT( psa_crypto_init( ) ); PSA_ASSERT( psa_crypto_init( ) );
/* /*
* Finish none active operation, the driver shouldn't be called. * Finish inactive operation, the driver shouldn't be called.
*/ */
TEST_EQUAL( psa_hash_finish( &operation, output, PSA_HASH_LENGTH( alg ), TEST_EQUAL( psa_hash_finish( &operation, output, PSA_HASH_LENGTH( alg ),
&output_length ), &output_length ),
@ -1277,7 +1277,7 @@ void hash_clone( int alg_arg,
PSA_ASSERT( psa_crypto_init( ) ); PSA_ASSERT( psa_crypto_init( ) );
/* /*
* Clone none active operation, the driver shouldn't be called. * Clone inactive operation, the driver shouldn't be called.
*/ */
TEST_EQUAL( psa_hash_clone( &source_operation, &target_operation ), TEST_EQUAL( psa_hash_clone( &source_operation, &target_operation ),
PSA_ERROR_BAD_STATE ); PSA_ERROR_BAD_STATE );