LR1110
User Manual Rev.1.0
UM.LR1110.W.APP March 2020
108 of 130
Semtech
www.semtech.com
12.3.3 CryptoDeriveAndStoreKey
The command CryptoDeriveAndStoreKey( ) will derive (encrypt) into a specific Key identified by DstKeyID, the Nonce value
provided, using a source Key identified by SrcKeyID.
• DstKeyID and SrcKeyID are defined in Table 12-1: Cryptographic Keys Usage and Derivation:
DstKeyID: destination key ID. Goes from 0 to 27.
SrcKeyID: source Key ID. Goes from 0 to 27.
• Nonce1, Nonce2, ... ,Nonce16: array of Bytes.
• CEStatus is defined in section CEStatus on page 107.
12.3.4 CryptoProcessJoinAccept
The command CryptoProcessJoinAccept( ) will do an ECB decryption (AES encrypt) on the Data and Header, and then verify
the MIC of the decrypted message.
The decrypted data is then provided back if the MIC verification is successful.
Table 12-4: CryptoDeriveAndStoreKey Command
Byte 0 1 2 3 4 5 6 … 19
Data from Host 0x05 0x03
Source
KeyID
(7:0)
Dest
KeyID
(7:0)
Nonce1 Nonce2 Nonce3 … Nonce16
Data to Host Stat1 Stat2
IrqStatus
(31:24)
IrqStatus
(23:16)
IrqStatus
(15:8)
IrqStatus
(7:0)
0x00 … 0x00
Table 12-5: CryptoDeriveAndStoreKey Response
Byte 0 1
Data from Host 0x00 0x00
Data to Host Stat1 CEStatus
Table 12-6: CryptoProcessJoinAccept Command
Byte 0 1 2 3 4 5 … N+6 N+7 ...
N+6+
M
Data
from
Host
0x05 0x04
Dec
KeyID
(7:0)
Ver
KeyID
(7:0)
LoRa
Wan
Ver (7:0)
Header1
…
HeaderN Data1 ... DataM
Data
to
Host
Stat1 Stat2
Irq
Status
(31:24)
Irq
Status
(23:16)
Irq
Status
(15:8)
Irq
Status
(7:0)
… 0x00 0x00 ... 0x00