Documentation
¶
Index ¶
- Constants
- func CutAUTN(autn []byte) ([]byte, []byte, []byte)
- func CutAUTS(auts []byte) ([]byte, []byte)
- 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 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.