ausf

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProfileAMacKeyLen = 32 // octets
	ProfileAEncKeyLen = 16 // octets
	ProfileAIcbLen    = 16 // octets
	ProfileAMacLen    = 8  // octets
	ProfileAHashLen   = 32 // octets
)

profile A.

View Source
const (
	SqnMAx int64 = 0x7FFFFFFFFFF
)

Variables

This section is empty.

Functions

func Auth5gAkaComfirmRequestProcedure

func Auth5gAkaComfirmRequestProcedure(resStar string, suci string) (string, string, error)

func F1 added in v0.7.0

func F1(opc, k, _rand, sqn, amf, macA, macS []uint8) error

*

  • milenage_f1 - Milenage f1 and f1* algorithms
  • @opc: OPc = 128-bit value derived from OP and K
  • @k: K = 128-bit subscriber key
  • @_rand: RAND = 128-bit random challenge
  • @sqn: SQN = 48-bit sequence number
  • @amf: AMF = 16-bit authentication management field
  • @macA: Buffer for MAC-A = 64-bit network authentication code, or %NULL
  • @macS: Buffer for MAC-S = 64-bit resync authentication code, or %NULL
  • Returns: 0 on success, -1 on failure

func F2345 added in v0.7.0

func F2345(opc, k, _rand, res, ck, ik, ak, akstar []uint8) error

*

  • milenage_f2345 - Milenage f2, f3, f4, f5, f5* algorithms
  • @opc: OPc = 128-bit value derived from OP and K
  • @k: K = 128-bit subscriber key
  • @_rand: RAND = 128-bit random challenge
  • @res: Buffer for RES = 64-bit signed response (f2), or %NULL
  • @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
  • @ik: Buffer for IK = 128-bit integrity key (f4), or %NULL
  • @ak: Buffer for AK = 48-bit anonymity key (f5), or %NULL
  • @akstar: Buffer for AK = 48-bit anonymity key (f5*), or %NULL
  • Returns: 0 on success, -1 on failure

func Start

func Start(dbInstance *db.Database)

func ToSupi added in v0.7.0

func ToSupi(suci string, privateKey string) (string, error)

func UeAuthPostRequestProcedure

func UeAuthPostRequestProcedure(ctx context.Context, suci string, snName string, resyncInfo *models.ResynchronizationInfo) (*models.Av5gAka, error)

Types

type AUSF added in v1.0.0

type AUSF struct {
	// contains filtered or unexported fields
}

func NewAUSF added in v1.0.0

func NewAUSF(dbInstance *db.Database) *AUSF

func (*AUSF) CreateAuthData added in v1.0.0

func (ausf *AUSF) CreateAuthData(ctx context.Context, snName string, resyncInfo *models.ResynchronizationInfo, suci string) (*models.AuthenticationInfoResult, error)

type UEAuthenticationContext added in v1.0.0

type UEAuthenticationContext struct {
	Supi     string
	Kseaf    string
	XresStar string
	Rand     string
}

Jump to

Keyboard shortcuts

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