Documentation
¶
Index ¶
- Constants
- func CutAUTN(autn []byte) ([]byte, []byte, []byte)
- func CutAUTS(auts []byte) ([]byte, []byte)
- func F2345(opc, k, _rand []uint8) (res, ck, ik, ak, akstar []byte, err error)
- func GenerateAKAParameters(opc, k, rand, sqn, amf []byte) (ik, ck, xres, autn []byte, err error)
- func GenerateAUTS(opc, k, rand, sqnms []byte) (auts []byte, err error)
- func GenerateKeysWithAUTN(opc, k, rand, autn []byte) (sqnhe, ak, ik, ck, res []byte, err error)
- func GenerateOPc(k, op []uint8) (opc []uint8, err error)
- func GenerateOPcFromHex(k, op string) (opc string, err error)
- func ValidateAUTS(opc, k, rand, auts []byte) (sqnms []byte, err error)
- type MACFailureError
- type ParameterLengthError
Constants ¶
View Source
const ( K_LEN = 16 OP_LEN = 16 OPC_LEN = 16 SQN_LEN = 6 RAND_LEN = 16 AMF_LEN = 2 MAC_LEN = 8 RES_LEN = 8 SRES_LEN = 4 KC_LEN = 8 CK_LEN = 16 IK_LEN = 16 AK_LEN = 6 AUTN_LEN = 16 AUTS_LEN = 14 CIPHER_BLOCK_LEN = 16 )
Variables ¶
This section is empty.
Functions ¶
func F2345 ¶ added in v1.3.3
*
- 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
- Returns:
- @res: RES = 64-bit signed response (f2)
- @ck: CK = 128-bit confidentiality key (f3)
- @ik: IK = 128-bit integrity key (f4)
- @ak: AK = 48-bit anonymity key (f5)
- @akstar: AK = 48-bit anonymity key (f5*)
func GenerateAKAParameters ¶
func GenerateAUTS ¶
func GenerateKeysWithAUTN ¶
func GenerateOPc ¶
func GenerateOPcFromHex ¶
func ValidateAUTS ¶
Types ¶
type MACFailureError ¶
func (*MACFailureError) Error ¶
func (m *MACFailureError) Error() string
type ParameterLengthError ¶
func (*ParameterLengthError) Error ¶
func (e *ParameterLengthError) Error() string
Click to show internal directories.
Click to hide internal directories.