LR1121
User Manual Rev 1.1
UM.LR1121.W.APP Mar 2023
109 of 130
Semtech
Proprietary & Confidential
www.semtech.com
10.3.8 CryptoAesEncrypt
Command CryptoAesEncrypt(...) encrypts the provided data using the specified Key and returns it. It is to be used
for generic, non-LoRaWAN cryptographic operations, where the Crypto Engine is used as a hardware accelerator, on key
indexes 26 and 27 only (General Purpose keys).
• KeyID: Specified Key ID, as defined in Table 10-1: Cryptographic Keys Usage and Derivation.
Valid values are from 26 to 27.
• Data1, Data2 to DataN: Provided data, considered as byte buffers.
• CEStatus: Defined in section CEStatus on page 103.
• EncryptedData1, EncryptedData2 to EncryptedDataN: Encrypted data, considered as byte buffers.
Table 10-16: CryptoAesEncrypt Command
Byte 0 1 2 3 … N+2
Data from Host 0x05 0x08 KeyID (7:0) Data1 … DataN
Data to Host Stat1 Stat2
IrqStatus
(31:24)
IrqStatus
(23:16)
… 0x00
Table 10-17: CryptoAesEncrypt Response
Byte 0 1 2 … N+1
Data from Host 0x00 0x00 0x00 … 0x00
Data to Host Stat1 CEStatus
Encrypted
Data1
…
Encrypted
DataN