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

◆ cc3xx_cipher_decrypt()

psa_status_t cc3xx_cipher_decrypt ( const psa_key_attributes_t *  attributes,
const uint8_t *  key_buffer,
size_t  key_buffer_size,
psa_algorithm_t  alg,
const uint8_t *  input,
size_t  input_length,
uint8_t *  output,
size_t  output_size,
size_t *  output_length 
)

Perform a one-shot decryption operation.

Parameters
[in]attributesKey attributes
[in]key_bufferBuffer holding key material
[in]key_buffer_sizeSize in bytes of the key
[in]algAlgorithm to be used for which PSA_ALG_IS_CIPHER(alg) is true
[in]inputBuffer holding the ciphertext
[in]input_lengthSize in bytes of the ciphertext
[out]outputBuffer holding the ciphertext
[in]output_sizeSize in bytes of the output buffer
[out]output_lengthSize in bytes of the decrypted data
Return values
PSA_SUCCESSon success. Error code from psa_status_t on failure