PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE macro
A sufficient output buffer size for psa_aead_decrypt(), for any of the supported key types and AEAD algorithms. If the size of the plaintext buffer is at least this large, it is guaranteed that psa_aead_decrypt() will not fail due to an insufficient buffer size. See also #PSA_AEAD_DECRYPT_OUTPUT_SIZE(\p key_type, \p alg, \p ciphertext_length).
Syntax
#define PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(ciphertext_length) \
(ciphertext_length)
Arguments
ciphertext_length
Size of the ciphertext in bytes.
Return value
A sufficient output buffer size for any of the supported key types and AEAD algorithms.
Notes
This macro returns a compile-time constant if its arguments are compile-time constants.
![]()
#define PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(ciphertext_length) \