Skip to content

Commit

Permalink
tngf delete Kn3iwf
Browse files Browse the repository at this point in the history
  • Loading branch information
tsc11539 committed Feb 7, 2024
1 parent d0ddc74 commit a76bdbf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions internal/context/amf_ue.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ type AmfUe struct {
KnasInt [16]uint8 // 16 byte
KnasEnc [16]uint8 // 16 byte
Kgnb []uint8 // 32 byte
// Kn3iwf []uint8 // 32 byte
Knon3gpp []uint8 // 32 byte
NH []uint8 // 32 byte
NCC uint8 // 0..7
Expand Down Expand Up @@ -536,7 +535,6 @@ func (ue *AmfUe) DerivateAnKey(anType models.AccessType) {
case security.AccessType3GPP:
ue.Kgnb = key
case security.AccessTypeNon3GPP:
// ue.Kn3iwf = key
ue.Knon3gpp = key
}
}
Expand Down Expand Up @@ -564,7 +562,6 @@ func (ue *AmfUe) UpdateSecurityContext(anType models.AccessType) {
case models.AccessType__3_GPP_ACCESS:
ue.DerivateNH(ue.Kgnb)
case models.AccessType_NON_3_GPP_ACCESS:
// ue.DerivateNH(ue.Kn3iwf)
ue.DerivateNH(ue.Knon3gpp)
}
ue.NCC = 1
Expand Down
1 change: 0 additions & 1 deletion internal/ngap/message/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,6 @@ func BuildInitialContextSetupRequest(
case models.AccessType__3_GPP_ACCESS:
securityKey.Value = ngapConvert.ByteToBitString(amfUe.Kgnb, 256)
case models.AccessType_NON_3_GPP_ACCESS:
// securityKey.Value = ngapConvert.ByteToBitString(amfUe.Kn3iwf, 256)
securityKey.Value = ngapConvert.ByteToBitString(amfUe.Knon3gpp, 256)
}

Expand Down

0 comments on commit a76bdbf

Please sign in to comment.