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

◆ cc3xx_aead_decrypt()

psa_status_t cc3xx_aead_decrypt ( const psa_key_attributes_t *  attributes,
const uint8_t *  key_buffer,
size_t  key_buffer_size,
psa_algorithm_t  alg,
const uint8_t *  nonce,
size_t  nonce_length,
const uint8_t *  additional_data,
size_t  additional_data_length,
const uint8_t *  ciphertext,
size_t  ciphertext_length,
uint8_t *  plaintext,
size_t  plaintext_size,
size_t *  plaintext_length 
)

Decrypt and verify tag with an AEAD algorithm in one-shot.

Parameters
[in]attributesAttributes of the key to use
[in]key_bufferKey material buffer
[in]key_buffer_sizeSize in bytes of the key
[in]algAlgorithm to use
[in]nonceNonce buffer
[in]nonce_lengthSize in bytes of the nonce
[in]additional_dataData to authenticate buffer
[in]additional_data_lengthSize in bytes of additional_data
[in]ciphertextData to decrypt buffer
[in]ciphertext_lengthSize in bytes of the data to decrypt
[out]plaintextBuffer to hold the decrypted data
[in]plaintext_sizeSize in bytes of the plaintext buffer
[out]plaintext_lengthSize in bytes of the decrypted data
Return values
PSA_SUCCESSon success. Error code from psa_status_t on failure