nas_security

package
v1.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(ue *context.AmfUe, accessType models.AccessType, payload []byte,
	initialMessage bool,
) (msg *nas.Message, integrityProtected bool, err error)

payload either a security protected 5GS NAS message or a plain 5GS NAS message which format is followed TS 24.501 9.1.1

func DecodePlainNasNoIntegrityCheck added in v1.2.1

func DecodePlainNasNoIntegrityCheck(payload []byte) (*nas.Message, error)

DecodePlainNas is used to decode plain nas. If nas pdu is ciphered, this function will return error message. return value is: *nas.Message

func Encode

func Encode(ue *context.AmfUe, msg *nas.Message, accessType models.AccessType) ([]byte, error)

func GetBearerType

func GetBearerType(accessType models.AccessType) uint8

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL