Documentation ¶
Index ¶
- func AESEncrypt(x, k []byte) []byte
- func F0() []byte
- func F1(opc, k, rand, sqn, amf []byte) []byte
- func F1Star(opc, k, rand, sqnMs, amfStar []byte) []byte
- func F2(opc, k, rand, sqnMs, amfStar []byte) []byte
- func F3(opc, k, rand, sqnMs, amfStar []byte) []byte
- func F4(opc, k, rand, sqnMs, amfStar []byte) []byte
- func F5(opc, k, rand, sqnMs, amfStar []byte) []byte
- func F5Star(opc, k, rand, sqnMs, amfStar []byte) []byte
- func GenenrateSQN() []byte
- func GenerateRAND() []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESEncrypt ¶
AESEncrypt implements the Rijndael Encryption algorithm (3GPP TS 35.206 4.2) Apply the Rijndael block cipher encryption to the input value x using the key k. Returns a 128-bit output
func F0 ¶
func F0() []byte
F0 the random challenge generating function Returns RAND: Random Challenge (128 bits)
func F1 ¶
F1 (the network authentication function) 64-bit MAC-A = f1(OPC, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1 OPc: computed off USIM (TS 35.206 5.1)
func F1Star ¶
F1Star (the re-synchronisation message authentication function;) 64-bit MAC-S = f1*(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 v10.0.0 Annex 3
func F2 ¶
F2 (the user authentication function) 64-bit RES = f2(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1
func F3 ¶
F3 (the cipher key derivation function) 128-bit CK= f3(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1
func F4 ¶
F4 (the integrity key derivation function) 128-bit IK = f4(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 v10.0.0 Annex 3
func F5 ¶
F5 (the anonymity key derivation function) 48-bit AK = f5(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1
func F5Star ¶
F5Star (the anonymity key derivation function for the re-synchronisation message) 48-bit AK = f5*(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1
func GenenrateSQN ¶
func GenenrateSQN() []byte
GenenrateSQN generate the SQN (48-bit) used as input for quintet generation obtained as follows: SQN = SEQ (Global part) || IND (Individual part) TODO: Not yet implemented
func GenerateRAND ¶
func GenerateRAND() []byte
GenerateRAND return a 128-bit pseudo random number. It implements f0 TODO: Not yet implemented
Types ¶
This section is empty.