Home
last modified time | relevance | path

Searched refs:_rand (Results 1 – 21 of 21) 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/tensorflow/tensorflow/contrib/specs/python/
Dspecs_test.py34 def _rand(*size): function
42 inputs = constant_op.constant(_rand(1, 18, 19, 5))
57 inputs = constant_op.constant(_rand(17, 55))
67 inputs = constant_op.constant(_rand(17, 55))
81 inputs = constant_op.constant(_rand(1, 64, 64, 5))
94 inputs = constant_op.constant(_rand(1, 64, 64, 5))
110 inputs = constant_op.constant(_rand(1, 64, 64, 5))
127 inputs = constant_op.constant(_rand(10, 20))
141 inputs = constant_op.constant(_rand(10, 20))
154 inputs = constant_op.constant(_rand(10, 20))
[all …]
Dsummaries_test.py30 def _rand(*size): function
39 inputs = constant_op.constant(_rand(*inputs_shape))
52 inputs = constant_op.constant(_rand(1, 18, 19, 5))
64 inputs = constant_op.constant(_rand(1, 18, 19, 5))
74 inputs = constant_op.constant(_rand(1, 18, 19, 5))
/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()
Deap_pwd_common.c506 int eap_pwd_get_rand_mask(EAP_PWD_group *group, struct crypto_bignum *_rand, in eap_pwd_get_rand_mask() argument
518 if (crypto_bignum_rand(_rand, order) == 0 && in eap_pwd_get_rand_mask()
519 !crypto_bignum_is_zero(_rand) && in eap_pwd_get_rand_mask()
522 crypto_bignum_add(_rand, _mask, scalar) == 0 && in eap_pwd_get_rand_mask()
Deap_pwd_common.h73 int eap_pwd_get_rand_mask(EAP_PWD_group *group, struct crypto_bignum *_rand,
/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.c1241 int scard_gsm_auth(struct scard_data *scard, const unsigned char *_rand, in scard_gsm_auth() argument
1254 wpa_hexdump(MSG_DEBUG, "SCARD: GSM auth - RAND", _rand, 16); in scard_gsm_auth()
1257 os_memcpy(cmd + 5, _rand, 16); in scard_gsm_auth()
1264 os_memcpy(cmd + 6, _rand, 16); in scard_gsm_auth()
1340 int scard_umts_auth(struct scard_data *scard, const unsigned char *_rand, in scard_umts_auth() argument
1361 wpa_hexdump(MSG_DEBUG, "SCARD: UMTS auth - RAND", _rand, AKA_RAND_LEN); in scard_umts_auth()
1364 os_memcpy(cmd + 6, _rand, AKA_RAND_LEN); in scard_umts_auth()
/external/python/google-api-python-client/tests/
Dtest_http.py276 self.assertEqual(random.random, new_req._rand)
384 request._rand = lambda: 10
410 request._rand = lambda: 1.0
541 download._rand = lambda: 10
575 download._rand = lambda: 10
872 request._rand = lambda: 10
884 request._rand = lambda: 10
903 request._rand = lambda: 10
929 request._rand = lambda: 10
955 request._rand = lambda: 10
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Deapol_test.c1071 unsigned char _rand[16]; in scard_test() local
1115 os_memset(_rand, 0, sizeof(_rand)); in scard_test()
1116 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_test()
1119 os_memset(_rand, 0xff, sizeof(_rand)); in scard_test()
1120 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_test()
1180 unsigned char _rand[16]; in scard_get_triplets() local
1215 os_memset(_rand, i, sizeof(_rand)); in scard_get_triplets()
1216 if (scard_gsm_auth(scard, _rand, sres, kc)) in scard_get_triplets()
1230 printf("%02X", _rand[j]); in scard_get_triplets()
Drrm.c1151 u32 _rand; in wpas_rm_handle_beacon_req() local
1229 if (os_get_random((u8 *) &_rand, sizeof(_rand)) < 0) in wpas_rm_handle_beacon_req()
1230 _rand = os_random(); in wpas_rm_handle_beacon_req()
1231 interval_usec = (_rand % (rand_interval + 1)) * 1024; in wpas_rm_handle_beacon_req()
Dsme.c2448 u32 _rand; in sme_event_ch_switch() local
2458 if (os_get_random((u8 *) &_rand, sizeof(_rand)) < 0) in sme_event_ch_switch()
2459 _rand = os_random(); in sme_event_ch_switch()
2460 usec = _rand % (sa_query_ch_switch_max_delay + 1); in sme_event_ch_switch()
/external/tensorflow/tensorflow/python/kernel_tests/
Dbatch_matmul_op_test.py100 def _rand(self, shape, dtype): member in BatchMatmulOpTest
111 self._rand(a_shape, dtype),
112 self._rand(b_shape, dtype), adjoint_a, adjoint_b, use_static_shape)
/external/python/google-api-python-client/googleapiclient/
Dhttp.py650 self._rand = random.random
685 http, num_retries, 'media download', self._sleep, self._rand, self._uri,
793 self._rand = random.random
845 http, num_retries, 'request', self._sleep, self._rand, str(self.uri),
921 http, num_retries, 'resumable URI request', self._sleep, self._rand,
975 self._sleep(self._rand() * 2**retry_num)
/external/python/cpython3/Lib/multiprocessing/
Dheap.py32 _rand = tempfile._RandomNameSequence() variable in Arena
37 name = 'pym-%d-%s' % (os.getpid(), next(self._rand))
Dsynchronize.py48 _rand = tempfile._RandomNameSequence() variable in SemLock
117 next(SemLock._rand))
/external/wpa_supplicant_8/src/ap/
Ddfs.c446 u32 _rand; in dfs_get_valid_channel() local
465 if (os_get_random((u8 *) &_rand, sizeof(_rand)) < 0) in dfs_get_valid_channel()
467 chan_idx = _rand % num_available_chandefs; in dfs_get_valid_channel()