Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/hostap-latest/src/crypto/
Daes_i.h33 #define RCON(i) rcon[(i)] argument
35 #define TE0(i) Te0[((i) >> 24) & 0xff] argument
36 #define TE1(i) Te1[((i) >> 16) & 0xff] argument
37 #define TE2(i) Te2[((i) >> 8) & 0xff] argument
38 #define TE3(i) Te3[(i) & 0xff] argument
39 #define TE41(i) (Te4[((i) >> 24) & 0xff] & 0xff000000) argument
40 #define TE42(i) (Te4[((i) >> 16) & 0xff] & 0x00ff0000) argument
41 #define TE43(i) (Te4[((i) >> 8) & 0xff] & 0x0000ff00) argument
42 #define TE44(i) (Te4[(i) & 0xff] & 0x000000ff) argument
43 #define TE421(i) (Te4[((i) >> 16) & 0xff] & 0xff000000) argument
[all …]
Dmilenage.c40 int i; in milenage_f1() local
43 for (i = 0; i < 16; i++) in milenage_f1()
44 tmp1[i] = _rand[i] ^ opc[i]; in milenage_f1()
56 for (i = 0; i < 16; i++) in milenage_f1()
57 tmp3[(i + 8) % 16] = tmp2[i] ^ opc[i]; in milenage_f1()
59 for (i = 0; i < 16; i++) in milenage_f1()
60 tmp3[i] ^= tmp1[i]; in milenage_f1()
66 for (i = 0; i < 16; i++) in milenage_f1()
67 tmp1[i] ^= opc[i]; in milenage_f1()
92 int i; in milenage_f2345() local
[all …]
Daes-siv.c22 int i, carry; in dbl() local
25 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in dbl()
26 pad[i] = (pad[i] << 1) | (pad[i + 1] >> 7); in dbl()
35 int i; in xor() local
37 for (i = 0; i < AES_BLOCK_SIZE; i++) in xor()
44 int i; in xorend() local
49 for (i = 0; i < blen; i++) in xorend()
50 a[alen - blen + i] ^= b[i]; in xorend()
70 size_t i; in aes_s2v() local
88 for (i = 0; i < num_elem - 1; i++) { in aes_s2v()
[all …]
Dsha256-internal.c29 size_t i; in sha256_vector() local
35 for (i = 0; i < num_elem; i++) in sha256_vector()
36 if (sha256_process(&ctx, addr[i], len[i])) in sha256_vector()
85 int i; in sha256_compress() local
88 for (i = 0; i < 8; i++) { in sha256_compress()
89 S[i] = md->state[i]; in sha256_compress()
93 for (i = 0; i < 16; i++) in sha256_compress()
94 W[i] = WPA_GET_BE32(buf + (4 * i)); in sha256_compress()
97 for (i = 16; i < 64; i++) { in sha256_compress()
98 W[i] = Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + in sha256_compress()
[all …]
Dsha512-internal.c28 size_t i; in sha512_vector() local
31 for (i = 0; i < num_elem; i++) in sha512_vector()
32 if (sha512_process(&ctx, addr[i], len[i])) in sha512_vector()
111 int i; in sha512_compress() local
118 for (i = 0; i < 8; i++) { in sha512_compress()
119 S[i] = md->state[i]; in sha512_compress()
123 for (i = 0; i < 16; i++) in sha512_compress()
124 W[i] = WPA_GET_BE64(buf + (8 * i)); in sha512_compress()
127 for (i = 16; i < 80; i++) { in sha512_compress()
128 W[i] = Gamma1(W[i - 2]) + W[i - 7] + Gamma0(W[i - 15]) + in sha512_compress()
[all …]
Drc4.c19 u32 i, j, k; in rc4_skip() local
24 for (i = 0; i < 256; i++) in rc4_skip()
25 S[i] = i; in rc4_skip()
28 for (i = 0; i < 256; i++) { in rc4_skip()
29 j = (j + S[i] + key[kpos]) & 0xff; in rc4_skip()
33 S_SWAP(i, j); in rc4_skip()
37 i = j = 0; in rc4_skip()
39 i = (i + 1) & 0xff; in rc4_skip()
40 j = (j + S[i]) & 0xff; in rc4_skip()
41 S_SWAP(i, j); in rc4_skip()
[all …]
Daes-omac1.c18 int i, carry; in gf_mulx() local
21 for (i = 0; i < AES_BLOCK_SIZE - 1; i++) in gf_mulx()
22 pad[i] = (pad[i] << 1) | (pad[i + 1] >> 7); in gf_mulx()
49 size_t i, e, left, total_len; in omac1_aes_vector() local
69 for (i = 0; i < AES_BLOCK_SIZE; i++) { in omac1_aes_vector()
70 cbc[i] ^= *pos++; in omac1_aes_vector()
76 if (i + 1 == AES_BLOCK_SIZE && in omac1_aes_vector()
94 for (i = 0; i < left; i++) { in omac1_aes_vector()
95 cbc[i] ^= *pos++; in omac1_aes_vector()
101 if (i + 1 == left) in omac1_aes_vector()
[all …]
Dsha1-internal.c34 size_t i; in sha1_vector() local
40 for (i = 0; i < num_elem; i++) in sha1_vector()
41 SHA1Update(&ctx, addr[i], len[i]); in sha1_vector()
135 #define blk0(i) (block->l[i] = (rol(block->l[i], 24) & 0xFF00FF00) | \ argument
136 (rol(block->l[i], 8) & 0x00FF00FF))
138 #define blk0(i) block->l[i] argument
140 #define blk(i) (block->l[i & 15] = rol(block->l[(i + 13) & 15] ^ \ argument
141 block->l[(i + 8) & 15] ^ block->l[(i + 2) & 15] ^ block->l[i & 15], 1))
144 #define R0(v,w,x,y,z,i) \ argument
145 z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \
[all …]
Daes-ccm.c67 size_t i; in aes_ccm_auth() local
69 for (i = 0; i < len / AES_BLOCK_SIZE; i++) { in aes_ccm_auth()
77 for (i = 0; i < last; i++) in aes_ccm_auth()
78 x[i] ^= *data++; in aes_ccm_auth()
96 size_t i; in aes_ccm_encr() local
99 for (i = 1; i <= len / AES_BLOCK_SIZE; i++) { in aes_ccm_encr()
100 WPA_PUT_BE16(&a[AES_BLOCK_SIZE - 2], i); in aes_ccm_encr()
108 WPA_PUT_BE16(&a[AES_BLOCK_SIZE - 2], i); in aes_ccm_encr()
111 for (i = 0; i < last; i++) in aes_ccm_encr()
119 size_t i; in aes_ccm_encr_auth() local
[all …]
/hostap-latest/src/fst/
Dfst_iface.h32 void fst_iface_delete(struct fst_iface *i);
34 static inline struct fst_group * fst_iface_get_group(struct fst_iface *i) in fst_iface_get_group() argument
36 return i->group; in fst_iface_get_group()
39 static inline const char * fst_iface_get_name(struct fst_iface *i) in fst_iface_get_name() argument
41 return i->ifname; in fst_iface_get_name()
44 static inline const u8 * fst_iface_get_addr(struct fst_iface *i) in fst_iface_get_addr() argument
46 return i->own_addr; in fst_iface_get_addr()
49 static inline const char * fst_iface_get_group_id(struct fst_iface *i) in fst_iface_get_group_id() argument
51 return i->cfg.group_id; in fst_iface_get_group_id()
54 static inline u8 fst_iface_get_priority(struct fst_iface *i) in fst_iface_get_priority() argument
[all …]
Dfst_iface.c20 struct fst_iface *i; in fst_iface_create() local
22 i = os_zalloc(sizeof(*i)); in fst_iface_create()
23 if (!i) { in fst_iface_create()
29 i->cfg = *cfg; in fst_iface_create()
30 i->iface_obj = *iface_obj; in fst_iface_create()
31 i->group = g; in fst_iface_create()
32 os_strlcpy(i->ifname, ifname, sizeof(i->ifname)); in fst_iface_create()
33 os_memcpy(i->own_addr, own_addr, sizeof(i->own_addr)); in fst_iface_create()
35 if (!i->cfg.llt) { in fst_iface_create()
36 fst_printf_iface(i, MSG_WARNING, "Zero llt adjusted"); in fst_iface_create()
[all …]
/hostap-latest/src/p2p/
Dp2p_utils.c29 size_t i; in p2p_random() local
36 for (i = 0; i < len; i++) { in p2p_random()
37 val = buf[i]; in p2p_random()
40 buf[i] = 'A' + val; in p2p_random()
42 buf[i] = 'a' + (val - letters); in p2p_random()
44 buf[i] = '0' + (val - 2 * letters); in p2p_random()
83 size_t i, j; in p2p_reg_class_intersect() local
87 for (i = 0; i < a->channels; i++) { in p2p_reg_class_intersect()
89 if (a->channel[i] != b->channel[j]) in p2p_reg_class_intersect()
91 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect()
[all …]
/hostap-latest/src/utils/
Dutils_module_tests.c47 int i; in printf_encode_decode_tests() local
56 for (i = 0; printf_tests[i].data; i++) { in printf_encode_decode_tests()
57 const struct printf_test_data *test = &printf_tests[i]; in printf_encode_decode_tests()
59 wpa_printf(MSG_INFO, "%d: -> \"%s\"", i, buf); in printf_encode_decode_tests()
85 for (i = 5; i < 10; i++) { in printf_encode_decode_tests()
86 buf[i] = 'A'; in printf_encode_decode_tests()
87 printf_encode(buf, i, (const u8 *) "\xdd\xdd\xdd\xdd\xdd", 5); in printf_encode_decode_tests()
88 if (buf[i] != 'A') { in printf_encode_decode_tests()
90 i); in printf_encode_decode_tests()
131 int i; in bitfield_tests() local
[all …]
Dcommon.c43 size_t i; in hwaddr_parse() local
45 for (i = 0; i < ETH_ALEN; i++) { in hwaddr_parse()
52 addr[i] = a; in hwaddr_parse()
53 if (i < ETH_ALEN - 1 && *txt++ != ':') in hwaddr_parse()
116 int i; in hwaddr_compact_aton() local
118 for (i = 0; i < 6; i++) { in hwaddr_compact_aton()
141 int i; in hwaddr_aton2() local
144 for (i = 0; i < 6; i++) { in hwaddr_aton2()
173 size_t i; in hexstr2bin() local
178 for (i = 0; i < len; i++) { in hexstr2bin()
[all …]
Deloop.c128 size_t i; in eloop_trace_sock_add_ref() local
132 for (i = 0; i < table->count; i++) { in eloop_trace_sock_add_ref()
133 wpa_trace_add_ref(&table->table[i], eloop, in eloop_trace_sock_add_ref()
134 table->table[i].eloop_data); in eloop_trace_sock_add_ref()
135 wpa_trace_add_ref(&table->table[i], user, in eloop_trace_sock_add_ref()
136 table->table[i].user_data); in eloop_trace_sock_add_ref()
143 size_t i; in eloop_trace_sock_remove_ref() local
147 for (i = 0; i < table->count; i++) { in eloop_trace_sock_remove_ref()
148 wpa_trace_remove_ref(&table->table[i], eloop, in eloop_trace_sock_remove_ref()
149 table->table[i].eloop_data); in eloop_trace_sock_remove_ref()
[all …]
Dwpa_debug.c261 size_t i; in _wpa_hexdump() local
273 for (i = 0; i < len; i++) in _wpa_hexdump()
275 " %02x", buf[i]); in _wpa_hexdump()
303 for (i = 0; i < slen; i++) in _wpa_hexdump()
304 os_snprintf(&strbuf[i * 3], 4, " %02x", in _wpa_hexdump()
305 buf[i]); in _wpa_hexdump()
338 for (i = 0; i < len; i++) in _wpa_hexdump()
339 os_snprintf(&strbuf[i * 3], 4, " %02x", in _wpa_hexdump()
340 buf[i]); in _wpa_hexdump()
362 for (i = 0; i < len; i++) in _wpa_hexdump()
[all …]
/hostap-latest/src/ap/
Deap_user_db.c82 int i; in get_user_cb() local
84 for (i = 0; i < argc; i++) { in get_user_cb()
85 if (os_strcmp(col[i], "password") == 0 && argv[i]) { in get_user_cb()
87 user->password_len = os_strlen(argv[i]); in get_user_cb()
88 user->password = (u8 *) os_strdup(argv[i]); in get_user_cb()
90 } else if (os_strcmp(col[i], "methods") == 0 && argv[i]) { in get_user_cb()
91 set_user_methods(user, argv[i]); in get_user_cb()
92 } else if (os_strcmp(col[i], "remediation") == 0 && argv[i]) { in get_user_cb()
93 user->remediation = strlen(argv[i]) > 0; in get_user_cb()
94 } else if (os_strcmp(col[i], "t_c_timestamp") == 0 && argv[i]) { in get_user_cb()
[all …]
Dacs.c339 int i; in acs_cleanup_mode() local
342 for (i = 0; i < mode->num_channels; i++) { in acs_cleanup_mode()
343 chan = &mode->channels[i]; in acs_cleanup_mode()
358 int i; in acs_cleanup() local
360 for (i = 0; i < iface->num_hw_features; i++) in acs_cleanup()
361 acs_cleanup_mode(&iface->hw_features[i]); in acs_cleanup()
414 unsigned int i = 0; in acs_survey_chan_interference_factor() local
426 i++; in acs_survey_chan_interference_factor()
429 wpa_printf(MSG_DEBUG, "ACS: %d: insufficient data", i); in acs_survey_chan_interference_factor()
438 i, chan->min_nf, int_factor, in acs_survey_chan_interference_factor()
[all …]
/hostap-latest/wlantest/
Dwlantest_cli.c147 int rlen, i; in get_bssid_list() local
162 for (i = 0; i < len / ETH_ALEN; i++) { in get_bssid_list()
163 res[i] = os_zalloc(18); in get_bssid_list()
164 if (res[i] == NULL) in get_bssid_list()
166 os_snprintf(res[i], 18, MACSTR, MAC2STR(bssid + ETH_ALEN * i)); in get_bssid_list()
179 int rlen, i; in get_sta_list() local
200 for (i = 0; i < len / ETH_ALEN; i++) { in get_sta_list()
201 res[i] = os_zalloc(18); in get_sta_list()
202 if (res[i] == NULL) in get_sta_list()
204 os_snprintf(res[i], 18, MACSTR, MAC2STR(addr + ETH_ALEN * i)); in get_sta_list()
[all …]
Dwep.c19 u32 i, j, k; in wep_crypt() local
25 for (i = 0; i < 256; i++) in wep_crypt()
26 S[i] = i; in wep_crypt()
28 for (i = 0; i < 256; i++) { in wep_crypt()
29 j = (j + S[i] + key[i & 0x0f]) & 0xff; in wep_crypt()
30 S_SWAP(i, j); in wep_crypt()
35 i = j = 0; in wep_crypt()
37 i = (i + 1) & 0xff; in wep_crypt()
38 j = (j + S[i]) & 0xff; in wep_crypt()
39 S_SWAP(i, j); in wep_crypt()
[all …]
/hostap-latest/hostapd/
Dmain.c156 size_t i; in hostapd_driver_init() local
208 for (i = 0; wpa_drivers[i]; i++) { in hostapd_driver_init()
209 if (wpa_drivers[i] != hapd->driver) in hostapd_driver_init()
212 if (global.drv_priv[i] == NULL && in hostapd_driver_init()
213 wpa_drivers[i]->global_init) { in hostapd_driver_init()
214 global.drv_priv[i] = in hostapd_driver_init()
215 wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
216 if (global.drv_priv[i] == NULL) { in hostapd_driver_init()
219 wpa_drivers[i]->name); in hostapd_driver_init()
224 params.global_priv = global.drv_priv[i]; in hostapd_driver_init()
[all …]
/hostap-latest/wpa_supplicant/
Dmain.c24 int i; in usage() local
57 for (i = 0; wpa_drivers[i]; i++) { in usage()
59 wpa_drivers[i]->name, in usage()
60 wpa_drivers[i]->desc); in usage()
133 int i; in wpa_supplicant_fd_workaround() local
140 for (i = 0; i < 3; i++) { in wpa_supplicant_fd_workaround()
141 fd[i] = open("/dev/null", O_RDWR); in wpa_supplicant_fd_workaround()
142 if (fd[i] > 2) { in wpa_supplicant_fd_workaround()
143 close(fd[i]); in wpa_supplicant_fd_workaround()
144 fd[i] = -1; in wpa_supplicant_fd_workaround()
[all …]
Dop_classes.c24 int i; in allow_channel() local
27 for (i = 0; i < mode->num_channels; i++) { in allow_channel()
30 chan_is_6ghz = is_6ghz_freq(mode->channels[i].freq); in allow_channel()
31 if (is_6ghz == chan_is_6ghz && mode->channels[i].chan == chan) in allow_channel()
35 if (i == mode->num_channels || in allow_channel()
36 (mode->channels[i].flag & HOSTAPD_CHAN_DISABLED)) in allow_channel()
40 *flags = mode->channels[i].flag; in allow_channel()
42 if (mode->channels[i].flag & HOSTAPD_CHAN_NO_IR) in allow_channel()
52 size_t i; in get_center_80mhz() local
57 for (i = 0; i < num_chan; i++) { in get_center_80mhz()
[all …]
/hostap-latest/tests/hwsim/
Dtest_wmediumd.py81 for i in range(0, len(LocalVariables.revs)):
82 LocalVariables.revs[i] = int(LocalVariables.revs[i])
169 for i in range(0, 3):
170 check_mesh_support(dev[i])
171 add_open_mesh_network(dev[i], freq="2462", basic_rates="60 120 240")
174 for i in range(0, 3):
175 check_mesh_group_added(dev[i])
177 state = dev[i].get_status_field("wpa_state")
179 raise Exception("Unexpected wpa_state on dev" + str(i) + ": " + state)
181 mode = dev[i].get_status_field("mode")
[all …]
/hostap-latest/tests/hwsim/vm/
Dparallel-vm.py91 for i in range(num_servers):
92 failed += vm[i]['failed']
186 for i in range(num_servers):
187 if vm[i]['starting']:
233 for i in range(num_servers):
234 if vm[i]['proc']:
243 if vm[i]['cmd'] and len(test_queue) > num_starting and \
245 if i + 1 < status_line:
246 scr.move(i + 1, 10)
248 scr.addstr(i + 1, 10, "starting VM")
[all …]

12345678910>>...18