Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 113) sorted by relevance

12345

/hostap-3.7.0/tests/
Dtest-list.c20 struct test *t; in dump_list() local
22 dl_list_for_each(t, head, struct test, list) in dump_list()
23 printf(" %d", t->value); in dump_list()
31 struct test *t, *tmp; in main() local
38 t = os_zalloc(sizeof(*t)); in main()
39 if (t == NULL) in main()
41 t->value = i; in main()
42 dl_list_add(&head, &t->list); in main()
47 t = os_zalloc(sizeof(*t)); in main()
48 if (t == NULL) in main()
[all …]
Dtest-milenage.c701 const struct milenage_test_set *t; in main() local
708 t = &test_sets[i]; in main()
711 milenage_opc(t->op, t->k, opc); in main()
712 if (memcmp(opc, t->opc, 16) != 0) { in main()
717 if (milenage_f1(opc, t->k, t->rand, t->sqn, t->amf, buf, buf2) in main()
718 || memcmp(buf, t->f1, 8) != 0) { in main()
722 if (memcmp(buf2, t->f1star, 8) != 0) { in main()
727 if (milenage_f2345(opc, t->k, t->rand, buf, buf2, buf3, buf4, in main()
729 memcmp(buf, t->f2, 8) != 0) { in main()
733 if (memcmp(buf2, t->f3, 16) != 0) { in main()
[all …]
/hostap-3.7.0/src/utils/
Dutils_module_tests.c452 os_time_t t; in os_tests() local
480 if (os_mktime(1969, 1, 1, 1, 1, 1, &t) == 0 || in os_tests()
481 os_mktime(1971, 0, 1, 1, 1, 1, &t) == 0 || in os_tests()
482 os_mktime(1971, 13, 1, 1, 1, 1, &t) == 0 || in os_tests()
483 os_mktime(1971, 1, 0, 1, 1, 1, &t) == 0 || in os_tests()
484 os_mktime(1971, 1, 32, 1, 1, 1, &t) == 0 || in os_tests()
485 os_mktime(1971, 1, 1, -1, 1, 1, &t) == 0 || in os_tests()
486 os_mktime(1971, 1, 1, 24, 1, 1, &t) == 0 || in os_tests()
487 os_mktime(1971, 1, 1, 1, -1, 1, &t) == 0 || in os_tests()
488 os_mktime(1971, 1, 1, 1, 60, 1, &t) == 0 || in os_tests()
[all …]
Dos_win32.c26 int os_get_time(struct os_time *t) in os_get_time() argument
44 t->sec = (os_time_t) (tt / 1000000); in os_get_time()
45 t->usec = (os_time_t) (tt % 1000000); in os_get_time()
51 int os_get_reltime(struct os_reltime *t) in os_get_reltime() argument
56 t->sec = now.sec; in os_get_reltime()
57 t->usec = now.usec; in os_get_reltime()
63 os_time_t *t) in os_mktime() argument
97 *t = (os_time_t) t_local - tz_offset; in os_mktime()
102 int os_gmtime(os_time_t t, struct os_tm *tm) in os_gmtime() argument
105 time_t t2 = t; in os_gmtime()
Dos_zephyr.c26 int os_get_time(struct os_time *t) in os_get_time() argument
32 t->sec = tv.tv_sec; in os_get_time()
33 t->usec = tv.tv_usec; in os_get_time()
37 int os_get_reltime(struct os_reltime *t) in os_get_reltime() argument
56 t->sec = ts.tv_sec; in os_get_reltime()
57 t->usec = ts.tv_nsec / 1000; in os_get_reltime()
78 os_time_t *t) in os_mktime() argument
115 *t = (os_time_t)t_local - tz_offset; in os_mktime()
119 int os_gmtime(os_time_t t, struct os_tm *tm) in os_gmtime() argument
122 time_t t2 = t; in os_gmtime()
Dos_internal.c41 int os_get_time(struct os_time *t) in os_get_time() argument
46 t->sec = tv.tv_sec; in os_get_time()
47 t->usec = tv.tv_usec; in os_get_time()
52 int os_get_reltime(struct os_reltime *t) in os_get_reltime() argument
57 t->sec = tv.tv_sec; in os_get_reltime()
58 t->usec = tv.tv_usec; in os_get_reltime()
64 os_time_t *t) in os_mktime() argument
81 *t = (os_time_t) mktime(&tm); in os_mktime()
86 int os_gmtime(os_time_t t, struct os_tm *tm) in os_gmtime() argument
89 time_t t2 = t; in os_gmtime()
/hostap-3.7.0/src/crypto/
Daes-internal-enc.c47 ROUND(1,t,s); in rijndaelEncrypt()
48 ROUND(2,s,t); in rijndaelEncrypt()
49 ROUND(3,t,s); in rijndaelEncrypt()
50 ROUND(4,s,t); in rijndaelEncrypt()
51 ROUND(5,t,s); in rijndaelEncrypt()
52 ROUND(6,s,t); in rijndaelEncrypt()
53 ROUND(7,t,s); in rijndaelEncrypt()
54 ROUND(8,s,t); in rijndaelEncrypt()
55 ROUND(9,t,s); in rijndaelEncrypt()
57 ROUND(10,s,t); in rijndaelEncrypt()
[all …]
Daes-internal-dec.c100 ROUND(1,t,s); in rijndaelDecrypt()
101 ROUND(2,s,t); in rijndaelDecrypt()
102 ROUND(3,t,s); in rijndaelDecrypt()
103 ROUND(4,s,t); in rijndaelDecrypt()
104 ROUND(5,t,s); in rijndaelDecrypt()
105 ROUND(6,s,t); in rijndaelDecrypt()
106 ROUND(7,t,s); in rijndaelDecrypt()
107 ROUND(8,s,t); in rijndaelDecrypt()
108 ROUND(9,t,s); in rijndaelDecrypt()
110 ROUND(10,s,t); in rijndaelDecrypt()
[all …]
Dcrypto_module_tests.c1872 const struct hmac_test *t = &hmac_tests[i]; in test_sha256() local
1876 if (hmac_sha256(t->key, t->key_len, t->data, t->data_len, in test_sha256()
1878 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1884 addr[0] = t->data; in test_sha256()
1885 len[0] = t->data_len; in test_sha256()
1886 if (hmac_sha256_vector(t->key, t->key_len, 1, addr, len, in test_sha256()
1888 os_memcmp(hash, t->hash, 32) != 0) { in test_sha256()
1895 addr[0] = t->data; in test_sha256()
1897 addr[1] = t->data + 1; in test_sha256()
1898 len[1] = t->data_len - 1; in test_sha256()
[all …]
Dfips_prf_internal.c20 u32 t[5], _t[5]; in fips186_2_prf() local
33 t[0] = 0x67452301; in fips186_2_prf()
34 t[1] = 0xEFCDAB89; in fips186_2_prf()
35 t[2] = 0x98BADCFE; in fips186_2_prf()
36 t[3] = 0x10325476; in fips186_2_prf()
37 t[4] = 0xC3D2E1F0; in fips186_2_prf()
46 os_memcpy(_t, t, 20); in fips186_2_prf()
Dmd5-internal.c73 u32 t; in byteReverse() local
75 t = (u32) ((unsigned) buf[3] << 8 | buf[2]) << 16 | in byteReverse()
77 *(u32 *) buf = t; in byteReverse()
104 u32 t; in MD5Update() local
108 t = ctx->bits[0]; in MD5Update()
109 if ((ctx->bits[0] = t + ((u32) len << 3)) < t) in MD5Update()
113 t = (t >> 3) & 0x3f; /* Bytes already in shsInfo->data */ in MD5Update()
117 if (t) { in MD5Update()
118 unsigned char *p = (unsigned char *) ctx->in + t; in MD5Update()
120 t = 64 - t; in MD5Update()
[all …]
Dfips_prf_wolfssl.c39 u32 t[5], _t[5]; in fips186_2_prf() local
52 t[0] = 0x67452301; in fips186_2_prf()
53 t[1] = 0xEFCDAB89; in fips186_2_prf()
54 t[2] = 0x98BADCFE; in fips186_2_prf()
55 t[3] = 0x10325476; in fips186_2_prf()
56 t[4] = 0xC3D2E1F0; in fips186_2_prf()
65 os_memcpy(_t, t, 20); in fips186_2_prf()
Daes-wrap.c31 unsigned int t; in aes_wrap() local
58 t = n * j + i; in aes_wrap()
59 a[7] ^= t; in aes_wrap()
60 a[6] ^= t >> 8; in aes_wrap()
61 a[5] ^= t >> 16; in aes_wrap()
62 a[4] ^= t >> 24; in aes_wrap()
Daes-unwrap.c32 unsigned int t; in aes_unwrap() local
54 t = n * j + i; in aes_unwrap()
55 b[7] ^= t; in aes_unwrap()
56 b[6] ^= t >> 8; in aes_unwrap()
57 b[5] ^= t >> 16; in aes_unwrap()
58 b[4] ^= t >> 24; in aes_unwrap()
Dcrypto_linux.c62 int s, t; in linux_af_alg_hash_vector() local
78 t = accept(s, NULL, NULL); in linux_af_alg_hash_vector()
79 if (t < 0) { in linux_af_alg_hash_vector()
87 res = send(t, addr[i], len[i], i + 1 < num_elem ? MSG_MORE : 0); in linux_af_alg_hash_vector()
102 res = recv(t, mac, mac_len, 0); in linux_af_alg_hash_vector()
118 close(t); in linux_af_alg_hash_vector()
233 int t; member
302 ctx->t = accept(ctx->s, NULL, NULL); in crypto_hash_init()
303 if (ctx->t < 0) { in crypto_hash_init()
322 res = send(ctx->t, data, len, MSG_MORE); in crypto_hash_update()
[all …]
Dfips_prf_openssl.c51 u32 t[5], _t[5]; in fips186_2_prf() local
64 t[0] = 0x67452301; in fips186_2_prf()
65 t[1] = 0xEFCDAB89; in fips186_2_prf()
66 t[2] = 0x98BADCFE; in fips186_2_prf()
67 t[3] = 0x10325476; in fips186_2_prf()
68 t[4] = 0xC3D2E1F0; in fips186_2_prf()
77 os_memcpy(_t, t, 20); in fips186_2_prf()
/hostap-3.7.0/tests/hwsim/
Drun-tests.py190 def is_long_duration_test(t): argument
191 return hasattr(t, "long_duration_test") and t.long_duration_test
193 def get_test_description(t): argument
194 if t.__doc__ is None:
197 desc = t.__doc__
198 if is_long_duration_test(t):
206 for t in files:
207 m = re.match(r'(test_.*)\.py$', t)
209 logger.debug("Import test cases from " + t)
215 test_names = list(set([t.__name__.replace('test_', '', 1) for t in tests]))
[all …]
Dremotehost.py120 t = threading.Thread(target=execute_thread, name=filename, args=(cmd, res))
121 t.start()
122 return t
124 def thread_stop(self, t): argument
125 if t.name.find("reaper") == -1:
128 pid_file = t.name + ".pid"
130 if t.is_alive():
135 self.thread_wait(t, 5)
136 if t.is_alive():
141 self.thread_wait(t, 5)
[all …]
Dtest_scs.py93 for t in tests:
94 if "FAIL" not in dev[0].request("SCS " + t):
95 raise Exception("Invalid SCS parameters accepted: " + t)
148 for t in tests:
149 cmd = "SCS scs_id=1 change " + t
151 raise Exception("SCS change failed: " + t)
154 if "scs_id=" in t:
159 raise Exception("SCS change failed: " + t)
161 raise Exception("SCS change failed: " + t)
169 raise Exception("SCS change failed: " + t)
[all …]
Dtest_hapd_ctrl.py606 for t in tests:
607 if "FAIL" not in hapd_global.request("DUP_NETWORK " + t):
608 raise Exception("Invalid DUP_NETWORK accepted: " + t)
829 for t in tests:
830 if "FAIL" not in hapd.request("SET " + t):
831 raise Exception("Invalid SET command accepted: " + t)
840 for t in tests:
841 if "FAIL" not in hapd.request("RADAR " + t):
842 raise Exception("Invalid RADAR command accepted: " + t)
848 for t in tests:
[all …]
/hostap-3.7.0/wpa_supplicant/
Dwpa_cli_zephyr.c253 char t = *(cmd + 1); in make_argv() local
255 if (t == quote) { in make_argv()
262 if (t == '0') { in make_argv()
267 t = *(cmd + i); in make_argv()
269 if (t >= '0' && t <= '7') { in make_argv()
270 v = (v << 3) | (t - '0'); in make_argv()
284 if (t == 'x') { in make_argv()
289 t = *(cmd + i); in make_argv()
291 if (t >= '0' && t <= '9') { in make_argv()
292 v = (v << 4) | (t - '0'); in make_argv()
[all …]
/hostap-3.7.0/tests/remote/
Drun-tests.py168 for t in files:
169 m = re.match(r'(test_.*)\.py$', t)
176 test_names = list(set([t.__name__.replace('test_', '', 1) for t in tests]))
180 for t in files:
181 m = re.match(r'(test_.*)\.py$', t)
204 hwsim_tests_to_run = [t for t in hwsim_tests
205 if hasattr(t, "remote_compatible") and
206 t.remote_compatible]
209 t = None
213 t = tt
[all …]
/hostap-3.7.0/src/eap_peer/
Dikev2.c120 const struct ikev2_transform *t; in ikev2_parse_transform() local
124 if (end - pos < (int) sizeof(*t)) { in ikev2_parse_transform()
129 t = (const struct ikev2_transform *) pos; in ikev2_parse_transform()
130 transform_len = WPA_GET_BE16(t->transform_length); in ikev2_parse_transform()
131 if (transform_len < (int) sizeof(*t) || transform_len > end - pos) { in ikev2_parse_transform()
138 transform_id = WPA_GET_BE16(t->transform_id); in ikev2_parse_transform()
143 t->type, transform_len, t->transform_type, transform_id); in ikev2_parse_transform()
145 if (t->type != 0 && t->type != 3) { in ikev2_parse_transform()
150 pos = (const u8 *) (t + 1); in ikev2_parse_transform()
156 switch (t->transform_type) { in ikev2_parse_transform()
[all …]
/hostap-3.7.0/src/eap_server/
Dikev2.c125 const struct ikev2_transform *t; in ikev2_parse_transform() local
129 if (end - pos < (int) sizeof(*t)) { in ikev2_parse_transform()
134 t = (const struct ikev2_transform *) pos; in ikev2_parse_transform()
135 transform_len = WPA_GET_BE16(t->transform_length); in ikev2_parse_transform()
136 if (transform_len < (int) sizeof(*t) || transform_len > end - pos) { in ikev2_parse_transform()
143 transform_id = WPA_GET_BE16(t->transform_id); in ikev2_parse_transform()
148 t->type, transform_len, t->transform_type, transform_id); in ikev2_parse_transform()
150 if (t->type != 0 && t->type != 3) { in ikev2_parse_transform()
155 pos = (const u8 *) (t + 1); in ikev2_parse_transform()
161 switch (t->transform_type) { in ikev2_parse_transform()
[all …]
/hostap-3.7.0/src/tls/
Dlibtommath.c205 unsigned char t; in bn_reverse() local
210 t = s[ix]; in bn_reverse()
212 s[iy] = t; in bn_reverse()
543 mp_int t; in mp_mulmod() local
545 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mulmod()
549 if ((res = mp_mul (a, b, &t)) != MP_OKAY) { in mp_mulmod()
550 mp_clear (&t); in mp_mulmod()
553 res = mp_mod (&t, c, d); in mp_mulmod()
554 mp_clear (&t); in mp_mulmod()
562 mp_int t; in mp_mod() local
[all …]

12345