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

◆ cc3xx_cipher_encrypt_setup()

psa_status_t cc3xx_cipher_encrypt_setup ( cc3xx_cipher_operation_t * operation,
const psa_key_attributes_t * attributes,
const uint8_t * key,
size_t key_length,
psa_algorithm_t alg )

Setup a cipher encryption object by binding the key to the context of a multipart cipher operation.

Parameters
[in]operationPointer to the operation object
[in]attributesAttributes for the key to be set
[in]keyBuffer holding key material
[in]key_lengthSize in bytes of the key
[in]algAlgorithm to setup for which PSA_ALG_IS_CIPHER(alg) must be true
Return values
PSA_SUCCESS
PSA_ERROR_NOT_SUPPORTED
PSA_ERROR_INVALID_ARGUMENT
PSA_ERROR_CORRUPTION_DETECTED
PSA_ERROR_BAD_STATE