nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ cc3xx_aead_finish()

psa_status_t cc3xx_aead_finish ( cc3xx_aead_operation_t operation,
uint8_t *  ciphertext,
size_t  ciphertext_size,
size_t *  ciphertext_length,
uint8_t *  tag,
size_t  tag_size,
size_t *  tag_length 
)

Finish encrypting a message in an AEAD operation.

Parameters
[in]operationActive AEAD operation.
[out]ciphertextBuffer containing the ciphertext.
[in]ciphertext_sizeSize of the ciphertext buffer in bytes.
[out]ciphertext_lengthThe number of bytes that make up the ciphertext
[out]tagBuffer where the tag is to be written.
[in]tag_sizeSize of the tag buffer in bytes.
[out]tag_lengthThe number of bytes that make up the tag.
Return values
#PSA_SUCCESS
#PSA_ERROR_INVALID_ARGUMENT
#PSA_ERROR_CORRUPTION_DETECTED
#PSA_ERROR_NOT_SUPPORTED