nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ cc3xx_mac_compute()

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.

Parameters
[in]attributesAttributes for the key to be set
[in]key_bufferBuffer holding key material
[in]key_buffer_sizeSize in bytes of the key
[in]algAlgorithm to be used
[in]inputBuffer containing input data to produce the MAC
[in]input_lengthSize in bytes of the input buffer
[out]macBuffer holding the produced MAC value
[in]mac_sizeSize in bytes of the mac buffer
[out]mac_lengthSize in bytes of the produced MAC value
Return values
PSA_SUCCESSon success. Error code from psa_status_t on failure