From 8ff74217e46cd9c1ecea05dbfcf1a20926cc3d56 Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Sun, 19 Sep 2021 18:39:23 +0100 Subject: [PATCH] Add comment explaining finish output size Signed-off-by: Paul Elliott --- library/psa_crypto_aead.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/psa_crypto_aead.c b/library/psa_crypto_aead.c index 46eb1c933..01d5d19d1 100644 --- a/library/psa_crypto_aead.c +++ b/library/psa_crypto_aead.c @@ -677,6 +677,8 @@ psa_status_t mbedtls_psa_aead_finish( if( status == PSA_SUCCESS ) { + /* This will be zero for all supported algorithms currently, but left + * here for future support. */ *ciphertext_length = finish_output_size; *tag_length = operation->tag_length; }