Finish encrypting a message in an AEAD operation.
- Parameters
-
[in] | operation | Active AEAD operation. |
[out] | ciphertext | Buffer containing the ciphertext. |
[in] | ciphertext_size | Size of the ciphertext buffer in bytes. |
[out] | ciphertext_length | The number of bytes that make up the ciphertext |
[out] | tag | Buffer where the tag is to be written. |
[in] | tag_size | Size of the tag buffer in bytes. |
[out] | tag_length | The number of bytes that make up the tag. |
- Return values
-
PSA_SUCCESS | |
PSA_ERROR_INVALID_ARGUMENT | |
PSA_ERROR_CORRUPTION_DETECTED | |
PSA_ERROR_NOT_SUPPORTED | |