Update PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE

Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
gabor-mezei-arm 2021-03-10 16:43:14 +01:00
parent 9c3b5077e6
commit 5699101ac9
No known key found for this signature in database
GPG key ID: 106F5A41ECC305BD

View file

@ -971,7 +971,8 @@
*/
#define PSA_CIPHER_ENCRYPT_OUTPUT_MAX_SIZE(input_length) \
(PSA_ROUND_UP_TO_MULTIPLE(PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE, \
(input_length) + PSA_BLOCK_CIPHER_BLOCK_MAX_SIZE))
(input_length) + 1) + \
PSA_CIPHER_IV_MAX_SIZE)
/** The maximum size of the output of psa_cipher_decrypt(), in bytes.
*