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

Function DeriveFNwkSIntKey

pkg/crypto/key_derivation.go:48–50  ·  view source on GitHub ↗

DeriveFNwkSIntKey derives the LoRaWAN 1.1 Forwarding Network Session Integrity Key

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

Source from the content-addressed store, hash-verified

46
47// DeriveFNwkSIntKey derives the LoRaWAN 1.1 Forwarding Network Session Integrity Key
48func DeriveFNwkSIntKey(nwkKey types.AES128Key, jn types.JoinNonce, joinEUI types.EUI64, dn types.DevNonce) types.AES128Key {
49 return deriveSKey(nwkKey, 0x01, jn, joinEUI, dn)
50}
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 {

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