nrfxlib API 0.1.0
|
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.
[in] | operation | Pointer to the operation object |
[in] | attributes | Attributes for the key to be set |
[in] | key | Buffer holding key material |
[in] | key_length | Size in bytes of the key |
[in] | alg | Algorithm to setup for which PSA_ALG_IS_CIPHER(alg) must be true |
#PSA_SUCCESS | |
#PSA_ERROR_NOT_SUPPORTED | |
#PSA_ERROR_INVALID_ARGUMENT | |
#PSA_ERROR_CORRUPTION_DETECTED | |
#PSA_ERROR_BAD_STATE |