TI OAD API Documentation  9.14.00
Data Fields
HSMBareMetal_MACOperationStruct Struct Reference

Struct containing the parameters required for MAC operations. More...

Data Fields

uint8_t * input
 
size_t inputLength
 
uint32_t keyAssetID
 
uint8_t keyLength
 
uint8_t * mac
 
size_t macLength
 
HSMBareMetal_operationDirection operationDirection
 
HSMBareMetal_MACOperationMode operationMode
 

Detailed Description

Struct containing the parameters required for MAC operations.

Field Documentation

§ input

uint8_t* HSMBareMetal_MACOperationStruct::input
  • Sign: Pointer to the input message to be authenticated.
    • Verify: Pointer to the input message to be verified.

§ inputLength

size_t HSMBareMetal_MACOperationStruct::inputLength

Length of the input message in bytes. May be zero for CMAC but must be non-zero for CBC-MAC. See function descriptions for further restrictions. Max length supported may be limited depending on the return behavior.

§ keyAssetID

uint32_t HSMBareMetal_MACOperationStruct::keyAssetID

The asset ID for the key in AssetStore

§ mac

uint8_t* HSMBareMetal_MACOperationStruct::mac
  • Sign: Pointer to the output buffer to write the generated MAC. Buffer size must be at least equal to macLength.
    • Verify: Pointer to the input MAC to be used for verification.

§ macLength

size_t HSMBareMetal_MACOperationStruct::macLength

Length of the MAC in bytes. Must be <= 16. A length of < 8 is not recommended and should severely restrict MAC recomputation attempts. See appendix A of NIST SP800-38b for more information.


The documentation for this struct was generated from the following file: