Home
last modified time | relevance | path

Searched refs:_rand (Results 1 – 13 of 13) sorted by relevance

/external/wpa_supplicant_8/src/crypto/
Dmilenage.c36 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand, in milenage_f1() argument
44 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f1()
88 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand, in milenage_f2345() argument
96 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f2345()
174 const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik, in milenage_generate() argument
184 if (milenage_f1(opc, k, _rand, sqn, amf, mac_a, NULL) || in milenage_generate()
185 milenage_f2345(opc, k, _rand, res, ck, ik, ak, NULL)) { in milenage_generate()
208 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts, in milenage_auts() argument
215 if (milenage_f2345(opc, k, _rand, NULL, NULL, NULL, NULL, ak)) in milenage_auts()
219 if (milenage_f1(opc, k, _rand, sqn, amf, NULL, mac_s) || in milenage_auts()
[all …]
Dmilenage.h13 const u8 *sqn, const u8 *_rand, u8 *autn, u8 *ik,
15 int milenage_auts(const u8 *opc, const u8 *k, const u8 *_rand, const u8 *auts,
17 int gsm_milenage(const u8 *opc, const u8 *k, const u8 *_rand, u8 *sres,
19 int milenage_check(const u8 *opc, const u8 *k, const u8 *sqn, const u8 *_rand,
22 int milenage_f1(const u8 *opc, const u8 *k, const u8 *_rand,
24 int milenage_f2345(const u8 *opc, const u8 *k, const u8 *_rand,
/external/wpa_supplicant_8/hostapd/
Dhlr_auc_gw.c76 u8 _rand[16]; member
344 hexstr2bin(pos, g->_rand, 16)) { in read_gsm_triplets()
617 u8 _rand[16], sres[4], kc[8]; in sim_req_auth() local
619 if (random_get_bytes(_rand, 16) < 0) in sim_req_auth()
621 gsm_milenage(m->opc, m->ki, _rand, sres, kc); in sim_req_auth()
627 rpos += wpa_snprintf_hex(rpos, rend - rpos, _rand, 16); in sim_req_auth()
646 rpos += wpa_snprintf_hex(rpos, rend - rpos, g->_rand, 16); in sim_req_auth()
684 u8 _rand[16], sres[4], kc[8]; in gsm_auth_req() local
686 if (hexstr2bin(pos, _rand, 16) != 0) in gsm_auth_req()
688 gsm_milenage(m->opc, m->ki, _rand, sres, kc); in gsm_auth_req()
[all …]
/external/wpa_supplicant_8/src/eap_common/
Deap_sake_common.c323 u8 _rand[2 * EAP_SAKE_RAND_LEN]; in eap_sake_compute_mic() local
344 os_memcpy(_rand, rand_s, EAP_SAKE_RAND_LEN); in eap_sake_compute_mic()
345 os_memcpy(_rand + EAP_SAKE_RAND_LEN, rand_p, in eap_sake_compute_mic()
359 os_memcpy(_rand, rand_p, EAP_SAKE_RAND_LEN); in eap_sake_compute_mic()
360 os_memcpy(_rand + EAP_SAKE_RAND_LEN, rand_s, in eap_sake_compute_mic()
369 _rand, 2 * EAP_SAKE_RAND_LEN, tmp, tmplen, in eap_sake_compute_mic()
/external/wpa_supplicant_8/src/eap_server/
Deap_sim_db.h42 u8 *_rand, u8 *kc, u8 *sres,
86 u8 *_rand, u8 *autn, u8 *ik, u8 *ck,
91 const u8 *_rand);
Deap_sim_db.c927 u8 *_rand, u8 *kc, u8 *sres, in eap_sim_db_get_gsm_triplets() argument
968 os_memcpy(_rand, entry->u.sim.rand, num_chal * GSM_RAND_LEN); in eap_sim_db_get_gsm_triplets()
1394 u8 *_rand, u8 *autn, u8 *ik, u8 *ck, in eap_sim_db_get_aka_auth() argument
1431 os_memcpy(_rand, entry->u.aka.rand, EAP_AKA_RAND_LEN); in eap_sim_db_get_aka_auth()
1491 const u8 *auts, const u8 *_rand) in eap_sim_db_resynchronize() argument
1531 _rand, EAP_AKA_RAND_LEN); in eap_sim_db_resynchronize()
/external/wpa_supplicant_8/src/utils/
Dpcsc_funcs.h19 int scard_gsm_auth(struct scard_data *scard, const unsigned char *_rand,
21 int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand,
Dpcsc_funcs.c1224 int scard_gsm_auth(struct scard_data *scard, const unsigned char *_rand, in scard_gsm_auth() argument
1237 wpa_hexdump(MSG_DEBUG, "SCARD: GSM auth - RAND", _rand, 16); in scard_gsm_auth()
1240 os_memcpy(cmd + 5, _rand, 16); in scard_gsm_auth()
1247 os_memcpy(cmd + 6, _rand, 16); in scard_gsm_auth()
1323 int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand, in scard_umts_auth() argument
1344 wpa_hexdump(MSG_DEBUG, "SCARD: UMTS auth - RAND", _rand, AKA_RAND_LEN); in scard_umts_auth()
1347 os_memcpy(cmd + 6, _rand, AKA_RAND_LEN); in scard_umts_auth()
/external/wpa_supplicant_8/wpa_supplicant/
Deapol_test.c1070 unsigned char _rand[16]; in scard_test() local
1114 os_memset(_rand, 0, sizeof(_rand)); in scard_test()
1115 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_test()
1118 os_memset(_rand, 0xff, sizeof(_rand)); in scard_test()
1119 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_test()
1179 unsigned char _rand[16]; in scard_get_triplets() local
1214 os_memset(_rand, i, sizeof(_rand)); in scard_get_triplets()
1215 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_get_triplets()
1229 printf("%02X", _rand[j]); in scard_get_triplets()
/external/chromium-trace/catapult/third_party/apiclient/googleapiclient/
Dhttp.py518 self._rand = random.random
547 self._sleep(self._rand() * 2**retry_num)
665 self._rand = random.random
717 self._sleep(self._rand() * 2**retry_num)
800 self._sleep(self._rand() * 2**retry_num)
865 self._sleep(self._rand() * 2**retry_num)
/external/wpa_supplicant_8/src/ap/
Ddfs.c433 u32 _rand; in dfs_get_valid_channel() local
452 if (os_get_random((u8 *) &_rand, sizeof(_rand)) < 0) in dfs_get_valid_channel()
454 chan_idx = _rand % num_available_chandefs; in dfs_get_valid_channel()
/external/v8/test/mjsunit/asm/embenchen/
Dlua_binarytrees.js1450 Module["_rand"] = _rand;
33604 d3 = +((_rand() | 0) % 2147483647 | 0 | 0) / 2147483647.0;
40471 _rand() | 0;
40849 function _rand() { function
40876 …emset: _memset, _malloc: _malloc, _memcpy: _memcpy, _strlen: _strlen, _rand: _rand, _bitshift64Shl… property
40893 var _rand = Module["_rand"] = asm["_rand"];
/external/v8/test/mjsunit/asm/poppler/
Dpoppler.js1466 function _rand() { function
7311 …rnBuild;var hb=env._unlink;var ib=env._write;var jb=env._ftell;var kb=env._rand;var lb=env.__ZNSt9…
7347 …rnBuild, "_unlink": _unlink, "_write": _write, "_ftell": _ftell, "_rand": _rand, "__ZNSt9exception…