Data Structures | Macros | Typedefs | Functions
ti_psa_crypto_mac.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <third_party/mbedtls/include/psa/crypto.h>
#include <ti/drivers/cryptoutils/cryptokey/CryptoKey.h>
#include <ti/devices/DeviceFamily.h>
#include <ti/drivers/sha2/SHA2XXF3HSM.h>
#include <ti/drivers/aescmac/AESCMACXXF3.h>
Include dependency graph for ti_psa_crypto_mac.h:

Go to the source code of this file.

Data Structures

struct  ti_psa_mac_operation_s
 

Macros

#define TI_PSA_MAC_OPERATION_INIT
 

Typedefs

typedef struct ti_psa_mac_operation_s ti_psa_mac_operation_t
 

Functions

static struct ti_psa_mac_operation_s ti_psa_mac_operation_init (void)
 
psa_status_t ti_psa_mac_abort (psa_mac_operation_t *psa_operation)
 
psa_status_t ti_psa_mac_sign_finish (psa_mac_operation_t *psa_operation, uint8_t *mac, size_t mac_size, size_t *mac_length)
 
psa_status_t ti_psa_mac_sign_setup (psa_mac_operation_t *psa_operation, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
 
psa_status_t ti_psa_mac_update (psa_mac_operation_t *psa_operation, const uint8_t *input, size_t input_length)
 
psa_status_t ti_psa_mac_verify_finish (psa_mac_operation_t *psa_operation, const uint8_t *mac, size_t mac_length)
 
psa_status_t ti_psa_mac_verify_setup (psa_mac_operation_t *psa_operation, mbedtls_svc_key_id_t key, psa_algorithm_t alg)
 
psa_status_t ti_psa_mac_compute (mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *mac, size_t mac_size, size_t *mac_length)
 
psa_status_t ti_psa_mac_verify (mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *mac, size_t mac_length)
 

Macro Definition Documentation

§ TI_PSA_MAC_OPERATION_INIT

#define TI_PSA_MAC_OPERATION_INIT
Value:
{ \
0 \
}
struct ti_psa_mac_operation_s ti_psa_mac_operation_t
Definition: ti_psa_crypto_mac.h:108

Referenced by ti_psa_mac_operation_init().

Typedef Documentation

§ ti_psa_mac_operation_t

Function Documentation

§ ti_psa_mac_operation_init()

static struct ti_psa_mac_operation_s ti_psa_mac_operation_init ( void  )
static

§ ti_psa_mac_abort()

psa_status_t ti_psa_mac_abort ( psa_mac_operation_t *  psa_operation)

§ ti_psa_mac_sign_finish()

psa_status_t ti_psa_mac_sign_finish ( psa_mac_operation_t *  psa_operation,
uint8_t *  mac,
size_t  mac_size,
size_t *  mac_length 
)

§ ti_psa_mac_sign_setup()

psa_status_t ti_psa_mac_sign_setup ( psa_mac_operation_t *  psa_operation,
mbedtls_svc_key_id_t  key,
psa_algorithm_t  alg 
)

§ ti_psa_mac_update()

psa_status_t ti_psa_mac_update ( psa_mac_operation_t *  psa_operation,
const uint8_t *  input,
size_t  input_length 
)

§ ti_psa_mac_verify_finish()

psa_status_t ti_psa_mac_verify_finish ( psa_mac_operation_t *  psa_operation,
const uint8_t *  mac,
size_t  mac_length 
)

§ ti_psa_mac_verify_setup()

psa_status_t ti_psa_mac_verify_setup ( psa_mac_operation_t *  psa_operation,
mbedtls_svc_key_id_t  key,
psa_algorithm_t  alg 
)

§ ti_psa_mac_compute()

psa_status_t ti_psa_mac_compute ( mbedtls_svc_key_id_t  key,
psa_algorithm_t  alg,
const uint8_t *  input,
size_t  input_length,
uint8_t *  mac,
size_t  mac_size,
size_t *  mac_length 
)

§ ti_psa_mac_verify()

psa_status_t ti_psa_mac_verify ( mbedtls_svc_key_id_t  key,
psa_algorithm_t  alg,
const uint8_t *  input,
size_t  input_length,
const uint8_t *  mac,
size_t  mac_length 
)
© Copyright 1995-2026, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale