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:
committed by
itayzafrir
parent
36a74b71a0
commit
ee652a344c
@ -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 );
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user