mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-24 13:32:59 +03:00
Use safer size for tag checking
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
@@ -1749,7 +1749,7 @@ psa_status_t psa_driver_wrapper_aead_verify(
|
|||||||
plaintext_size,
|
plaintext_size,
|
||||||
plaintext_length,
|
plaintext_length,
|
||||||
check_tag,
|
check_tag,
|
||||||
tag_length,
|
sizeof( check_tag ),
|
||||||
&check_tag_length );
|
&check_tag_length );
|
||||||
|
|
||||||
if( status == PSA_SUCCESS )
|
if( status == PSA_SUCCESS )
|
||||||
|
|||||||
Reference in New Issue
Block a user