Documentation
¶
Index ¶
- Constants
- func AddAusfUeContextToPool(ausfUeContext *AusfUeContext)
- func AddSuciSupiPairToMap(supiOrSuci string, supi string)
- func Auth5gAkaComfirmRequestProcedure(resStar string, confirmationDataResponseID string) (*models.ConfirmationDataResponse, error)
- func CalculateAtMAC(key []byte, input []byte) ([]byte, error)
- func CheckIfAusfUeContextExists(ref string) bool
- func CheckIfSuciSupiPairExists(ref string) bool
- func ConstructEapNoTypePkt(code EapCode, pktID uint8) string
- func ConstructFailEapAkaNotification(oldPktID uint8) (string, error)
- func EapAuthComfirmRequestProcedure(eapPayload string, eapSessionID string) (*models.EapSession, error)
- func EapEncodeAttribute(attributeType string, data string) (string, error)
- func GenerateRandomNumber() (uint8, error)
- func GetSupiFromSuciSupiMap(ref string) string
- func IsServingNetworkAuthorized(lookup string) bool
- func Start() error
- func UeAuthPostRequestProcedure(updateAuthenticationInfo models.AuthenticationInfo) (*models.UeAuthenticationCtx, error)
- type AUSFContext
- type AusfUeContext
- type EapCode
- type EapPacket
- type EapType
- type SuciSupiMap
Constants ¶
View Source
const ( AtRandAttribute = 1 AtAutnAttribute = 2 AtResAttribute = 3 AtMacAttribute = 11 AtNotificationAttribute = 12 AtIdentityAttribute = 14 AtKdfInputAttribute = 23 AtKdfAttribute = 24 )
Attribute Types for EAP-AKA'
View Source
const (
EapAkaPrimeTypeNum = 50
)
Variables ¶
This section is empty.
Functions ¶
func AddAusfUeContextToPool ¶
func AddAusfUeContextToPool(ausfUeContext *AusfUeContext)
func AddSuciSupiPairToMap ¶
func Auth5gAkaComfirmRequestProcedure ¶
func Auth5gAkaComfirmRequestProcedure(resStar string, confirmationDataResponseID string) (*models.ConfirmationDataResponse, error)
func ConstructEapNoTypePkt ¶
func EapAuthComfirmRequestProcedure ¶
func EapAuthComfirmRequestProcedure(eapPayload string, eapSessionID string) (*models.EapSession, error)
func EapEncodeAttribute ¶
func EapEncodeAttribute(attributeType string, data string) (returnStr string, err error) {
func GenerateRandomNumber ¶
Generates a random int between 0 and 255
func GetSupiFromSuciSupiMap ¶
func UeAuthPostRequestProcedure ¶
func UeAuthPostRequestProcedure(updateAuthenticationInfo models.AuthenticationInfo) (*models.UeAuthenticationCtx, error)
Types ¶
type AUSFContext ¶
type AusfUeContext ¶
type AusfUeContext struct { Supi string Kausf string Kseaf string ServingNetworkName string AuthStatus models.AuthResult // for 5G AKA XresStar string XRES string Rand string // contains filtered or unexported fields }
func GetAusfUeContext ¶
func GetAusfUeContext(ref string) *AusfUeContext
func NewAusfUeContext ¶
func NewAusfUeContext(identifier string) (ausfUeContext *AusfUeContext)
type EapType ¶
type EapType uint8
const ( EapTypeIdentity EapType = 1 EapTypeNotification EapType = 2 EapTypeNak EapType = 3 // Response only EapTypeMd5Challenge EapType = 4 EapTypeOneTimePassword EapType = 5 // otp EapTypeGenericTokenCard EapType = 6 // gtc EapTypeMSCHAPV2 EapType = 26 EapTypeExpandedTypes EapType = 254 EapTypeExperimentalUse EapType = 255 )
type SuciSupiMap ¶
Click to show internal directories.
Click to hide internal directories.