MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / DeriveSNwkSIntKey

Function DeriveSNwkSIntKey

pkg/crypto/key_derivation.go:53–55  ·  view source on GitHub ↗

DeriveSNwkSIntKey derives the LoRaWAN 1.1 Serving Network Session Integrity Key

(nwkKey types.AES128Key, jn types.JoinNonce, joinEUI types.EUI64, dn types.DevNonce)

Source from the content-addressed store, hash-verified

51
52// DeriveSNwkSIntKey derives the LoRaWAN 1.1 Serving Network Session Integrity Key
53func DeriveSNwkSIntKey(nwkKey types.AES128Key, jn types.JoinNonce, joinEUI types.EUI64, dn types.DevNonce) types.AES128Key {
54 return deriveSKey(nwkKey, 0x03, jn, joinEUI, dn)
55}
56
57// DeriveNwkSEncKey derives the LoRaWAN 1.1 Network Session Encryption Key
58func DeriveNwkSEncKey(nwkKey types.AES128Key, jn types.JoinNonce, joinEUI types.EUI64, dn types.DevNonce) types.AES128Key {

Callers 5

DeriveNwkSKeysMethod · 0.92
TestHandleJoinFunction · 0.92
test.goFile · 0.92
processDownlinkFunction · 0.92
TestKeyDerivationFunction · 0.85

Calls 1

deriveSKeyFunction · 0.85

Tested by 2

TestHandleJoinFunction · 0.74
TestKeyDerivationFunction · 0.68