package
1.2.1
Repository: https://github.com/go-magma/magma.git
Documentation: pkg.go.dev

# Functions

GenerateOpc returns the OP_c according to 3GPP 35.205 8.2 Inputs: key: 128 bit subscriber key op: 128 bit operator variant configuration field.
NewMilenageCipher instantiates the Milenage algo using crypto/rand for rng.
NewMockMilenageCipher instantiates the Milenage algo using MockRNG for rng.

# Constants

AnonymityKeyBytes is the number of bytes for the anonymity key.
AutnBytes is the number of bytes for the authentication token.
ConfidentialityKeyBytes is the number of bytes for the confidentiality key.
ExpectedAmfBytes is the number of bytes for the authentication management field.
ExpectedAutsBytes is the number of bytes for the authentication token from the client key.
ExpectedKeyBytes is the number of bytes for the subscriber key.
ExpectedOpBytes is the number of bytes for the operator variant configuration field.
ExpectedOpcBytes is the number of bytes for the operator variant algorithm configuration field.
ExpectedPlmnBytes is the number of bytes for the network identifier.
IntegrityKeyBytes is the number of bytes for the integrity key.
KasmeBytes is the number of bytes for the base network authentication token.
RandChallengeBytes is the number of bytes for the random challenge.
XresBytes is the number of bytes for the expected response.

# Structs

EutranVector reprsents an E-UTRAN key vector.
MilenageCipher implements the milenage algorithm (3GPP TS 35.205, .206, .207, .208).
MockRNG yields a constant byte sequence instead of generating a new random sequence each time.
SIPAuthVector represents the data encoded in a SIP auth data item.