1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Fix psa_aead_decrypt to read the tag at the end of the ciphertext

This commit is contained in:
Gilles Peskine
2018-06-01 19:23:52 +02:00
committed by itayzafrir
parent 36a74b71a0
commit ee652a344c
2 changed files with 60 additions and 28 deletions

View File

@ -637,7 +637,7 @@ void aead_encrypt_decrypt( int key_type_arg, char * key_hex,
TEST_ASSERT( psa_aead_decrypt( slot, alg,
nonce, nonce_length,
additional_data, additional_data_length,
output_data, output_length - tag_length, output_data2,
output_data, output_length, output_data2,
output_length, &output_length2 ) == expected_result );