Fix copypasta in PSA_AEAD_DECRYPT_OUTPUT_SIZE

This commit is contained in:
Gilles Peskine 2019-05-14 16:09:22 +02:00
parent 248010caa0
commit 36d477de44

View File

@ -292,7 +292,7 @@
*/
#define PSA_AEAD_DECRYPT_OUTPUT_SIZE(alg, ciphertext_length) \
(PSA_AEAD_TAG_LENGTH(alg) != 0 ? \
(plaintext_length) - PSA_AEAD_TAG_LENGTH(alg) : \
(ciphertext_length) - PSA_AEAD_TAG_LENGTH(alg) : \
0)
/** A sufficient output buffer size for psa_aead_update().