From f88a565f183a8f24feff070115f46f1100e6971c Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Tue, 22 Jun 2021 17:53:45 +0100 Subject: [PATCH] Better tag size default for m-aead finish Signed-off-by: Paul Elliott --- library/psa_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/psa_crypto.c b/library/psa_crypto.c index 056d5515dc..7a7238cc6d 100644 --- a/library/psa_crypto.c +++ b/library/psa_crypto.c @@ -3772,7 +3772,7 @@ psa_status_t psa_aead_finish( psa_aead_operation_t *operation, psa_status_t status = PSA_ERROR_CORRUPTION_DETECTED; *ciphertext_length = 0; - *tag_length = 0; + *tag_length = tag_size; if( operation->id == 0 ) {