Remove aead_verify call from test driver

Function was removed, but missed this reference.

Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
Paul Elliott 2021-07-22 21:47:27 +01:00
parent ed08cf884a
commit 26f4aef3a7

View File

@ -272,9 +272,26 @@ psa_status_t mbedtls_test_transparent_aead_verify(
}
else
{
uint8_t check_tag[PSA_AEAD_TAG_MAX_SIZE];
size_t check_tag_length;
mbedtls_test_driver_aead_hooks.driver_status =
mbedtls_psa_aead_verify( operation, plaintext, plaintext_size,
plaintext_length, tag, tag_length );
mbedtls_psa_aead_finish( operation,
plaintext,
plaintext_size,
plaintext_length,
check_tag,
tag_length,
&check_tag_length );
if( mbedtls_test_driver_aead_hooks.driver_status == PSA_SUCCESS )
{
if( tag_length != check_tag_length ||
mbedtls_psa_safer_memcmp( tag, check_tag, tag_length )
!= 0 )
mbedtls_test_driver_aead_hooks.driver_status =
PSA_ERROR_INVALID_SIGNATURE;
}
}
return( mbedtls_test_driver_aead_hooks.driver_status );