AM261x MCU+ SDK  26.00.00

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
hashModeHash mode: HSM_CRYPTO_HMAC_SHA256 or HSM_CRYPTO_HMAC_SHA512
ptrDataPointer to input data in shared memory
dataLenLength of input data in bytes
ptrTagPointer 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