From 437035bfe3f67caac725c3ec1ed6a977bd5bc406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bence=20Sz=C3=A9pk=C3=BAti?= Date: Thu, 11 Mar 2021 17:32:16 +0100 Subject: [PATCH] Fix revert of PSA_AEAD_UPDATE_OUTPUT_SIZE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both the original change, and its incomplete revert were introduced in #3386. Signed-off-by: Bence Szépkúti --- include/psa/crypto_sizes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/psa/crypto_sizes.h b/include/psa/crypto_sizes.h index a87492f83..9bb7a05a9 100644 --- a/include/psa/crypto_sizes.h +++ b/include/psa/crypto_sizes.h @@ -398,7 +398,7 @@ #define PSA_AEAD_UPDATE_OUTPUT_SIZE(alg, input_length) \ (PSA_ALG_IS_AEAD_ON_BLOCK_CIPHER(alg) ? \ PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, (input_length)) : \ - (input_length)) : \ + (input_length)) /** A sufficient output buffer size for psa_aead_update(), for any of the * supported key types and AEAD algorithms.