LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
125 of 130
Semtech
Proprietary & Confidential
www.semtech.com
13.4 CryptoElement Configuration / Status Operations
Table 13-4: CryptoElement Configuration / Status Operations
Command Opcode Parameters Description
CryptoSetKey 0x0502
KeyID(1)
Key(2)
CryptoDeriveKey 0x0503
SrcKeyID(1)
DstKeyID(1)
Input(2)
Derives and stores a key
CryptoProcessJoinAccept 0x0504
DecKeyID(1), VerKeyID(1)
LoRaWANVer(1), Header(1 or
12)
Data(16 or 32)
Processes a join accept message: decrypts full
message (data+header) verifies MIC on the
message, and if OK, provides decrypted message.
CryptoComputeAesCmac 0x0505
KeyID(1)
Data(256)
Computes CMAC, returns MIC using specified Key.
CryptoVerifyAesCmac 0x0506
KeyID(1)
ExpectedMIC(4)
Data(256)
Verifies computed CMAC (compare calculated
MIC with expected MIC)
CryptoAesEncrypt01 0x0507
KeyID(1)
Data(256)
Encrypts data using specified Key
CryptoAesEncrypt 0x0508
KeyID(1)
Data(256)
Encrypts data using specified Key
CryptoAesDecrypt 0x0509
KeyID(1)
Data(256)
Decrypts data using specified Key
CryptoStoreToFlash 0x050A --- Stores all Keys (and Parameters) to flash
CryptoRestoreFromFlash 0x050B --- Restores all Keys (and Parameters) from flash
CryptoSetParam 0x050D
ParamID(1),
Data(4)
Sets a parameter in RAM
CryptoGetParam 0x050E ParamID(1) Gets a parameter from RAM