Struct containing the parameters required for MAC operations.
More...
Struct containing the parameters required for MAC operations.
§ 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: