nrfxlib API 2.8.99
|
psa_status_t cc3xx_mac_compute | ( | 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 * | mac, | ||
size_t | mac_size, | ||
size_t * | mac_length ) |
Perform a MAC operation in a single step.
[in] | attributes | Attributes for the key to be set |
[in] | key_buffer | Buffer holding key material |
[in] | key_buffer_size | Size in bytes of the key |
[in] | alg | Algorithm to be used |
[in] | input | Buffer containing input data to produce the MAC |
[in] | input_length | Size in bytes of the input buffer |
[out] | mac | Buffer holding the produced MAC value |
[in] | mac_size | Size in bytes of the mac buffer |
[out] | mac_length | Size in bytes of the produced MAC value |
PSA_SUCCESS | on success. Error code from psa_status_t on failure |