The maximum size of the output of psa_aead_decrypt(), in bytes. 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. Depending on the algorithm, the actual size of the plaintext may be smaller. See also #PSA_AEAD_DECRYPT_OUTPUT_MAX_SIZE(\p ciphertext_length). \warning This macro may evaluate its arguments multiple times or zero times, so you should not pass arguments that contain side effects.
A symmetric key type that is compatible with algorithm \p alg.
alg
An AEAD algorithm (\c PSA_ALG_XXX value such that #PSA_ALG_IS_AEAD(\p alg) is true).
ciphertext_length
Size of the plaintext in bytes.
Return value
The AEAD ciphertext size for the specified algorithm. If the key type or AEAD algorithm is not recognized, or the parameters are incompatible, return 0.