19#include "psa/crypto.h"
39 const psa_key_attributes_t *attributes,
40 const uint8_t *key_buffer,
41 size_t key_buffer_size, psa_algorithm_t alg);
55 const psa_key_attributes_t *attributes,
56 const uint8_t *key_buffer,
57 size_t key_buffer_size,
70 const uint8_t *input,
size_t input_length);
83 uint8_t *mac,
size_t mac_size,
97 const uint8_t *mac,
size_t mac_length);
125 const uint8_t *key_buffer,
126 size_t key_buffer_size, psa_algorithm_t alg,
127 const uint8_t *input,
size_t input_length,
128 uint8_t *mac,
size_t mac_size,
psa_status_t cc3xx_mac_verify_setup(cc3xx_mac_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg)
Setup a MAC verifying object.
psa_status_t cc3xx_mac_update(cc3xx_mac_operation_t *operation, const uint8_t *input, size_t input_length)
Update a MAC object with new data to authenticate.
psa_status_t cc3xx_mac_abort(cc3xx_mac_operation_t *operation)
Abort a MAC operation.
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.
psa_status_t cc3xx_mac_verify_finish(cc3xx_mac_operation_t *operation, const uint8_t *mac, size_t mac_length)
Finalize a MAC verifying operation by checking the produced MAC matches with the reference MAC value.
psa_status_t cc3xx_mac_sign_finish(cc3xx_mac_operation_t *operation, uint8_t *mac, size_t mac_size, size_t *mac_length)
Finalize a MAC signing operation by producing the MAC value.
psa_status_t cc3xx_mac_sign_setup(cc3xx_mac_operation_t *operation, const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg)
Setup a MAC signing object.
Definition cc3xx_crypto_primitives_private.h:22