Home | History | Annotate | Download | only in hlr_auc_gw

Lines Matching refs:_rand

35  * @_rand: RAND = 128-bit random challenge
42 static int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
50 tmp1[i] = _rand[i] ^ opc[i];
86 * @_rand: RAND = 128-bit random challenge
94 static int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
102 tmp1[i] = _rand[i] ^ opc[i];
172 * @_rand: RAND = 128-bit random challenge
180 const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik,
190 if (milenage_f1(opc, k, _rand, sqn, amf, mac_a, NULL) ||
191 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) {
209 * @_rand: RAND = 128-bit random challenge
214 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
221 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak))
225 if (milenage_f1(opc, k, _rand, sqn, amf, NULL, mac_s) ||
236 * @_rand: RAND = 128-bit random challenge
241 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres, u8 *kc)
246 if (milenage_f2345(opc, k, _rand, res, ck, ik, NULL, NULL))
267 * @_rand: RAND = 128-bit random challenge
276 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
285 wpa_hexdump(MSG_DEBUG, "Milenage: RAND", _rand, 16);
287 if (milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL))
303 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak))
308 if (milenage_f1(opc, k, _rand, sqn, auts_amf, NULL, auts + 6))
316 if (milenage_f1(opc, k, _rand, rx_sqn, amf, mac_a, NULL))
1026 u8 auts[14], sqn[6], _rand[16];
1087 os_memset(_rand, 0xaa, sizeof(_rand));
1091 res = milenage_auts(t->opc, t->k, _rand, auts, buf);
1099 os_memcpy(_rand, "\x12\x69\xb8\x23\x41\x39\x35\x66\xfb\x99\x41\xe9\x84"
1102 milenage_generate(t->opc, t->amf, t->k, sqn, _rand, buf, buf2, buf3,
1105 wpa_hexdump(MSG_DEBUG, "RAND", _rand, 16);