Documentation ¶
Index ¶
- func CalculateIpv4HeaderChecksum(hdr *ipv4.Header) uint32
- func GetAuthSubscription(k, opc, op string) models.AuthenticationSubscription
- type RanUeContext
- func (ue *RanUeContext) DerivateAlgKey()
- func (ue *RanUeContext) DerivateKamf(key []byte, snName string, SQN, AK []byte)
- func (ue *RanUeContext) DeriveRESstarAndSetKey(authSubs models.AuthenticationSubscription, rand []byte, snName string) []byte
- func (ue *RanUeContext) Get5GMMCapability() (capability5GMM *nasType.Capability5GMM)
- func (ue *RanUeContext) GetUESecurityCapability() (UESecurityCapability *nasType.UESecurityCapability)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthSubscription ¶
func GetAuthSubscription(k, opc, op string) models.AuthenticationSubscription
Types ¶
type RanUeContext ¶
type RanUeContext struct { Supi string RanUeNgapId int64 AmfUeNgapId int64 ULCount security.Count DLCount security.Count CipheringAlg uint8 IntegrityAlg uint8 KnasEnc [16]uint8 KnasInt [16]uint8 Kamf []uint8 AuthenticationSubs models.AuthenticationSubscription }
func NewRanUeContext ¶
func NewRanUeContext(supi string, ranUeNgapId int64, cipheringAlg, integrityAlg uint8) *RanUeContext
func (*RanUeContext) DerivateAlgKey ¶
func (ue *RanUeContext) DerivateAlgKey()
Algorithm key Derivation function defined in TS 33.501 Annex A.9
func (*RanUeContext) DerivateKamf ¶
func (ue *RanUeContext) DerivateKamf(key []byte, snName string, SQN, AK []byte)
func (*RanUeContext) DeriveRESstarAndSetKey ¶
func (ue *RanUeContext) DeriveRESstarAndSetKey( authSubs models.AuthenticationSubscription, rand []byte, snName string) []byte
func (*RanUeContext) Get5GMMCapability ¶
func (ue *RanUeContext) Get5GMMCapability() (capability5GMM *nasType.Capability5GMM)
func (*RanUeContext) GetUESecurityCapability ¶
func (ue *RanUeContext) GetUESecurityCapability() (UESecurityCapability *nasType.UESecurityCapability)
Click to show internal directories.
Click to hide internal directories.