Skip to content

Commit

Permalink
fix test nas encoding
Browse files Browse the repository at this point in the history
Signed-off-by: Raguideau <[email protected]>
  • Loading branch information
Raguideau committed Nov 29, 2023
1 parent 70e69f9 commit 9118fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/amf/lib/tools/nasCoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func Encode(ue *context.UEContext, msg *nas.Message) ([]byte, error) {

// add sequece number
payload = append([]byte{dlCount.SQN()}, payload[:]...)
mac32, err := security.NASMacCalculate(ue.GetSecurityContext().GetCipheringAlg(), ue.GetSecurityContext().GetKnasInt(), dlCount.Get(),
mac32, err := security.NASMacCalculate(ue.GetSecurityContext().GetIntegrityAlg(), ue.GetSecurityContext().GetKnasInt(), dlCount.Get(),
security.Bearer3GPP, security.DirectionDownlink, payload)
if err != nil {
return nil, fmt.Errorf("MAC calcuate error: %+v", err)
Expand Down

0 comments on commit 9118fcf

Please sign in to comment.