nrfxlib API 0.1.0
Loading...
Searching...
No Matches
cc3xx_psa_mac.h File Reference
#include "psa/crypto.h"
#include "cc3xx_crypto_primitives.h"

Go to the source code of this file.

Functions

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.
 
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_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_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_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.
 

Detailed Description

This file contains the declaration of the entry points associated to the mac capability (single-part and multipart) as described by the PSA Cryptoprocessor Driver interface specification