commit | 03f1ea3624831f94d7ef9d389a9991632077aee1 | [log] [tgz] |
---|---|---|
author | Thomas Daubney <thomas.daubney@arm.com> | Thu Feb 01 16:16:27 2024 +0000 |
committer | Thomas Daubney <thomas.daubney@arm.com> | Mon Feb 12 12:07:38 2024 +0000 |
tree | 59d1750688badfe3a63fdc6403e3b1740b7d825c | |
parent | 1ffc5cb4a5cf709f612bb7c858cfd2e183142d27 [diff] [blame] |
Change condition on wiping tag buffer Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
diff --git a/library/psa_crypto.c b/library/psa_crypto.c index a9456fd..5621cec 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c
@@ -2734,7 +2734,7 @@ operation->mac_size = 0; } - if (status != PSA_ERROR_INSUFFICIENT_MEMORY) { + if (mac != NULL) { psa_wipe_tag_output_buffer(mac, status, mac_size, *mac_length); }