handler

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IKEAUTH_Request = iota
	EAP_RegistrationRequest
	EAP_Authentication
	EAP_NASSecurityComplete
	IKEAUTH_Authentication
)

IKE_AUTH state

Variables

This section is empty.

Functions

func BuildEAP5GANParameters

func BuildEAP5GANParameters() []byte

func DecryptProcedure

func DecryptProcedure(
	ikeSecurityAssociation *context.IKESecurityAssociation,
	ikeMessage *message.IKEMessage,
	encryptedPayload *message.Encrypted,
) (message.IKEPayloadContainer, error)

func EncryptProcedure

func EncryptProcedure(
	ikeSecurityAssociation *context.IKESecurityAssociation,
	ikePayload message.IKEPayloadContainer,
	responseIKEMessage *message.IKEMessage,
) error

func GenerateKeyForChildSA

func GenerateKeyForChildSA(
	ikeSecurityAssociation *context.IKESecurityAssociation,
	childSecurityAssociation *context.ChildSecurityAssociation,
) error

func GenerateKeyForIKESA

func GenerateKeyForIKESA(
	ikeSecurityAssociation *context.IKESecurityAssociation,
) error

func GenerateSPI

func GenerateSPI(n3ue *context.N3IWFIkeUe) []byte

func HandleCREATECHILDSA

func HandleCREATECHILDSA(
	udpConn *net.UDPConn,
	n3iwfAddr, ueAddr *net.UDPAddr,
	message *ike_message.IKEMessage,
)

func HandleIKEAUTH

func HandleIKEAUTH(
	udpConn *net.UDPConn,
	n3iwfAddr, ueAddr *net.UDPAddr,
	message *ike_message.IKEMessage,
)

func HandleIKESAINIT

func HandleIKESAINIT(
	udpConn *net.UDPConn,
	n3iwfAddr, ueAddr *net.UDPAddr,
	message *ike_message.IKEMessage,
)

func HandleInformational

func HandleInformational(
	udpConn *net.UDPConn,
	n3iwfAddr, ueAddr *net.UDPAddr,
	message *ike_message.IKEMessage,
)

func ParseIPAddressInformationToChildSecurityAssociation

func ParseIPAddressInformationToChildSecurityAssociation(
	childSecurityAssociation *context.ChildSecurityAssociation,
	trafficSelectorLocal *message.IndividualTrafficSelector,
	trafficSelectorRemote *message.IndividualTrafficSelector,
) error

func SendIKEAUTH

func SendIKEAUTH()

func SendIKEMessageToN3IWF

func SendIKEMessageToN3IWF(udpConn *net.UDPConn, srcAddr, dstAddr *net.UDPAddr, message *ike_message.IKEMessage)

func SendIKESAINIT

func SendIKESAINIT()

func SendN3IWFInformationExchange

func SendN3IWFInformationExchange(
	n3ue *context.N3UE, payload ike_message.IKEPayloadContainer, ike_flag uint8,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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