commit | b183d56b5f0a836af85c9bedaf9790ef0d0b284d | [log] [tgz] |
---|---|---|
author | Paul Elliott <paul.elliott@arm.com> | Mon Sep 13 19:02:57 2021 +0100 |
committer | Paul Elliott <paul.elliott@arm.com> | Sun Sep 19 18:43:16 2021 +0100 |
tree | d0e6c2ce63dc772fb5dfd23ec2dc4dffa15ea922 | |
parent | 06b6b8c8d6752d4da7d58f80cb52c41e2f2a30a5 [diff] |
Use safer size for tag checking Signed-off-by: Paul Elliott <paul.elliott@arm.com>
diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index 5e7eb11..4c56162 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c
@@ -1749,7 +1749,7 @@ plaintext_size, plaintext_length, check_tag, - tag_length, + sizeof( check_tag ), &check_tag_length ); if( status == PSA_SUCCESS )