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

Function UseNwkKey

pkg/specification/macspec/specification.go:89–91  ·  view source on GitHub ↗

UseNwkKey reports whether v uses a root NwkKey.

(v ttnpb.MACVersion)

Source from the content-addressed store, hash-verified

87
88// UseNwkKey reports whether v uses a root NwkKey.
89func UseNwkKey(v ttnpb.MACVersion) bool {
90 return compareMACVersion(v, ttnpb.MACVersion_MAC_V1_1) >= 0
91}
92
93// UseLegacyMIC reports whether v uses legacy MIC computation algorithm.
94func UseLegacyMIC(v ttnpb.MACVersion) bool {

Callers 15

JoinAcceptMICMethod · 0.92
EncryptRejoinAcceptMethod · 0.92
DeriveNwkSKeysMethod · 0.92
DeriveAppSKeyMethod · 0.92
JoinRequestMethod · 0.92
HandleJoinMethod · 0.92
HandleJoinRequestMethod · 0.92
SetMethod · 0.92
WithDefaultNwkKeysMethod · 0.92
end_devices.goFile · 0.92

Calls 1

compareMACVersionFunction · 0.85

Tested by

no test coverage detected