Documentation ¶
Index ¶
- func F1(opc, k, _rand, sqn, amf, mac_a, mac_s []uint8) error
- func F2345(opc, k, _rand, res, ck, ik, ak, akstar []uint8) error
- func GenerateOPC(k, op []uint8) ([]uint8, error)
- func Gsm_milenage(opc, k, _rand, sres, kc []uint8) int
- func InsertData(op, k, _rand, sqn, amf []uint8, OP, K, RAND, SQN, AMF string)
- func MilenageGenerate(opc, amf, k, sqn, _rand, autn, ik, ck, ak, res []uint8, res_len *uint)
- func Milenage_auts(opc, k, _rand, auts, sqn []uint8) int
- func Milenage_check(opc, k, sqn, _rand, autn, ik, ck, res []uint8, res_len *uint, auts []uint8) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateOPC ¶
func Gsm_milenage ¶
*
- gsm_milenage - Generate GSM-Milenage (3GPP TS 55.205) authentication triplet
- @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
- @k: K = 128-bit subscriber key
- @_rand: RAND = 128-bit random challenge
- @sres: Buffer for SRES = 32-bit SRES
- @kc: Buffer for Kc = 64-bit Kc
- Returns: 0 on success, -1 on failure
func InsertData ¶
func MilenageGenerate ¶
func Milenage_auts ¶
*
- milenage_auts - Milenage AUTS validation
- @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
- @k: K = 128-bit subscriber key
- @_rand: RAND = 128-bit random challenge
- @auts: AUTS = 112-bit authentication token from client
- @sqn: Buffer for SQN = 48-bit sequence number
- Returns: 0 = success (sqn filled), -1 on failure
int milenage_auts(const c_uint8_t *opc, const c_uint8_t *k, const c_uint8_t *_rand,
const c_uint8_t *auts, c_uint8_t *sqn)
func Milenage_check ¶
*
- milenage_generate - Generate AKA AUTN,IK,CK,RES
- @opc: OPc = 128-bit operator variant algorithm configuration field (encr.)
- @k: K = 128-bit subscriber key
- @sqn: SQN = 48-bit sequence number
- @_rand: RAND = 128-bit random challenge
- @autn: AUTN = 128-bit authentication token
- @ik: Buffer for IK = 128-bit integrity key (f4), or %NULL
- @ck: Buffer for CK = 128-bit confidentiality key (f3), or %NULL
- @res: Buffer for RES = 64-bit signed response (f2), or %NULL
- @res_len: Variable that will be set to RES length
- @auts: 112-bit buffer for AUTS
- Returns: 0 on success, -1 on failure, or -2 on synchronization failure
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.