DeriveNwkSEncKey derives the LoRaWAN 1.1 Network Session Encryption Key
(nwkKey types.AES128Key, jn types.JoinNonce, joinEUI types.EUI64, dn types.DevNonce)
| 56 | |
| 57 | // DeriveNwkSEncKey derives the LoRaWAN 1.1 Network Session Encryption Key |
| 58 | func DeriveNwkSEncKey(nwkKey types.AES128Key, jn types.JoinNonce, joinEUI types.EUI64, dn types.DevNonce) types.AES128Key { |
| 59 | return deriveSKey(nwkKey, 0x04, jn, joinEUI, dn) |
| 60 | } |
| 61 | |
| 62 | // DeriveAppSKey derives the LoRaWAN Application Session Key |
| 63 | // - If a LoRaWAN 1.1 device joins a LoRaWAN 1.1 network, the AppKey is used as "key" |