milenage

package
v0.0.0-...-9e22e62 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESEncrypt

func AESEncrypt(x, k []byte) []byte

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

func F1(opc, k, rand, sqn, amf []byte) []byte

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

func F1Star(opc, k, rand, sqnMs, amfStar []byte) []byte

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

func F2(opc, k, rand, sqnMs, amfStar []byte) []byte

F2 (the user authentication function) 64-bit RES = f2(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1

func F3

func F3(opc, k, rand, sqnMs, amfStar []byte) []byte

F3 (the cipher key derivation function) 128-bit CK= f3(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1

func F4

func F4(opc, k, rand, sqnMs, amfStar []byte) []byte

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

func F5(opc, k, rand, sqnMs, amfStar []byte) []byte

F5 (the anonymity key derivation function) 48-bit AK = f5(OPc, RAND, AMF, SQN, K) 3GPP Reference: 35.206 4.1

func F5Star

func F5Star(opc, k, rand, sqnMs, amfStar []byte) []byte

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.

Jump to

Keyboard shortcuts

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