nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ cc3xx_cipher_encrypt()

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

Perform a one-shot encryption 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]ivBuffer holding the initialization vector
[in]iv_lengthSize in bytes of the initialization vector
[in]inputBuffer holding the plaintext
[in]input_lengthSize in bytes of the plaintext
[out]outputBuffer holding the ciphertext
[in]output_sizeSize in bytes of the output buffer
[out]output_lengthSize in bytes of the encrypted data
Return values
PSA_SUCCESSon success. Error code from psa_status_t on failure