LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
107 of 130
Semtech
Proprietary & Confidential
www.semtech.com
10.3.6 CryptoVerifyAesCmac
Command CryptoVerifyAesCmac(...) computes the AES CMAC of the provided data using the specified Key, and
compares the provided MIC with the actual calculated MIC (first 4 bytes of the CMAC).
• KeyID: Specified Key ID, as defined in Table 10-1: Cryptographic Keys Usage and Derivation. 2, 5; 12-25 are possible.
• ExpectedMIC: Provided MIC (first 4 bytes of the CMAC).
• Data1, Data2 to DataN: Provided data, considered as byte buffers.
• CEStatus: Defined in section CEStatus on page 103.
If the 2 MICs are identical, the command returns CRYP_API_SUCCESS, otherwise, CRYP_API_FAIL_CMAC.
Table 10-12: CryptoVerifyAesCmac Command
Byte 0 1 2 3 4 5 6 7 … N+6
Data from Host 0x05 0x06
KeyID
(7:0)
Expected
MIC1
Expected
MIC2
Expected
MIC3
Expected
MIC4
Data1 … DataN
Data to Host Stat1 Stat2
IrqStatus
(31:24)
IrqStatus
(23:16)
IrqStatus
(15:8)
IrqStatus
(7:0)
0x00 0x00 … 0x00
Table 10-13: CryptoVerifyAesCmac Response
Byte 0 1
Data from Host 0x00 0x00
Data to Host Stat1 CEStatus