nrfxlib API 0.1.0
|
psa_status_t cc3xx_aead_encrypt_setup | ( | cc3xx_aead_operation_t * | operation, |
const psa_key_attributes_t * | attributes, | ||
const uint8_t * | key_buffer, | ||
size_t | key_buffer_size, | ||
psa_algorithm_t | alg | ||
) |
Set the key for a multipart authenticated encryption operation.
[in] | operation | The operation object to set up. |
[in] | attributes | The attributes of the key to be set. |
[in] | key_buffer | The buffer containing the key material. |
[in] | key_buffer_size | Size of key_buffer in bytes. |
[in] | alg | The AEAD algorithm (#PSA_ALG_IS_AEAD(alg ) must be true). |
#PSA_SUCCESS | |
#PSA_ERROR_INVALID_ARGUMENT | |
#PSA_ERROR_BAD_STATE | |
#PSA_ERROR_CORRUPTION_DETECTED | |
#PSA_ERROR_NOT_SUPPORTED |