AM263Px MCU+ SDK: HMACArgs_t Struct Reference

| AM263Px MCU+ SDK 26.00.00 |

Data Fields
HMACArgs_t Struct Reference
APIs for SOC Specific Device Drivers » APIs for HSMCLIENT

## Detailed Description

Args for HMAC generate and verify Note: These services are only available in HSSE mode.

Generate: on return ptrTag holds the HMAC output (32 bytes for SHA-256, 64 bytes for SHA-512). Verify: ptrTag must contain the expected tag. ACK if tags match, NACK otherwise.

Parameters

  hashMode | Hash mode: HSM_CRYPTO_HMAC_SHA256 or HSM_CRYPTO_HMAC_SHA512
  ptrData | Pointer to input data in shared memory
  dataLen | Length of input data in bytes
  ptrTag | Pointer to MAC tag buffer (32 bytes for SHA-256, 64 bytes for SHA-512)

## Data Fields
uint32_t | hashMode
uint8_t * | ptrData
uint32_t | dataLen
uint8_t * | ptrTag

## Field Documentation

## ◆ hashMode

uint32_t HMACArgs_t::hashMode

Hash mode selector: SHA-256 or SHA-512

## ◆ ptrData

uint8_t* HMACArgs_t::ptrData

Pointer to input data in shared memory

## ◆ dataLen

uint32_t HMACArgs_t::dataLen

Input data length in bytes

## ◆ ptrTag

uint8_t* HMACArgs_t::ptrTag

Pointer to MAC tag buffer