/hostap-latest/src/utils/ |
D | common.h | 236 static inline void WPA_PUT_BE16(u8 *a, u16 val) in WPA_PUT_BE16() argument 238 a[0] = val >> 8; in WPA_PUT_BE16() 239 a[1] = val & 0xff; in WPA_PUT_BE16() 247 static inline void WPA_PUT_LE16(u8 *a, u16 val) in WPA_PUT_LE16() argument 249 a[1] = val >> 8; in WPA_PUT_LE16() 250 a[0] = val & 0xff; in WPA_PUT_LE16() 258 static inline void WPA_PUT_BE24(u8 *a, u32 val) in WPA_PUT_BE24() argument 260 a[0] = (val >> 16) & 0xff; in WPA_PUT_BE24() 261 a[1] = (val >> 8) & 0xff; in WPA_PUT_BE24() 262 a[2] = val & 0xff; in WPA_PUT_BE24() [all …]
|
D | const_time.h | 31 static inline unsigned int const_time_fill_msb(unsigned int val) in const_time_fill_msb() argument 34 return (val >> (sizeof(val) * 8 - 1)) * ~0U; in const_time_fill_msb() 39 static inline unsigned int const_time_is_zero(unsigned int val) in const_time_is_zero() argument 43 return const_time_fill_msb(~val & (val - 1)); in const_time_is_zero()
|
D | common.c | 530 int val; in printf_decode() local 565 val = hex2byte(pos); in printf_decode() 566 if (val < 0) { in printf_decode() 567 val = hex2num(*pos); in printf_decode() 568 if (val < 0) in printf_decode() 570 buf[len++] = val; in printf_decode() 573 buf[len++] = val; in printf_decode() 585 val = *pos++ - '0'; in printf_decode() 587 val = val * 8 + (*pos++ - '0'); in printf_decode() 589 val = val * 8 + (*pos++ - '0'); in printf_decode() [all …]
|
D | json.h | 43 void json_add_int(struct wpabuf *json, const char *name, int val); 44 void json_add_string(struct wpabuf *json, const char *name, const char *val); 46 const void *val, size_t len); 47 int json_add_base64url(struct wpabuf *json, const char *name, const void *val, 49 int json_add_base64(struct wpabuf *json, const char *name, const void *val,
|
D | xml-utils.c | 194 char *val, *pos; in get_val() local 196 val = xml_node_get_text(ctx, node); in get_val() 197 if (val == NULL) in get_val() 199 pos = val; in get_val() 202 return val; in get_val() 233 char *val; in node_to_tnds() local 248 val = get_val(ctx, node); in node_to_tnds() 249 if (val || !xml_node_first_child(ctx, node)) in node_to_tnds() 251 val ? val : ""); in node_to_tnds() 252 xml_node_get_text_free(ctx, val); in node_to_tnds()
|
/hostap-latest/hostapd/ |
D | config_file.c | 586 int *num_server, const char *val, int def_port, in hostapd_config_read_radius_addr() argument 604 ret = hostapd_parse_ip_addr(val, &nserv->addr); in hostapd_config_read_radius_addr() 612 static int hostapd_parse_das_client(struct hostapd_bss_config *bss, char *val) in hostapd_parse_das_client() argument 616 secret = os_strchr(val, ' '); in hostapd_parse_das_client() 622 if (hostapd_parse_ip_addr(val, &bss->radius_das_client_addr)) in hostapd_parse_das_client() 638 int val = 0, last; in hostapd_config_parse_key_mgmt() local 657 val |= WPA_KEY_MGMT_PSK; in hostapd_config_parse_key_mgmt() 659 val |= WPA_KEY_MGMT_IEEE8021X; in hostapd_config_parse_key_mgmt() 662 val |= WPA_KEY_MGMT_FT_PSK; in hostapd_config_parse_key_mgmt() 664 val |= WPA_KEY_MGMT_FT_IEEE8021X; in hostapd_config_parse_key_mgmt() [all …]
|
/hostap-latest/src/wps/ |
D | wps_validate.c | 97 static int valid_config_methods(u16 val, int wps2) in valid_config_methods() argument 100 if ((val & 0x6000) && !(val & WPS_CONFIG_DISPLAY)) { in valid_config_methods() 106 if (!(val & 0x6000) && (val & WPS_CONFIG_DISPLAY)) { in valid_config_methods() 111 if ((val & 0x0600) && !(val & WPS_CONFIG_PUSHBUTTON)) { in valid_config_methods() 117 if (!(val & 0x0600) && (val & WPS_CONFIG_PUSHBUTTON)) { in valid_config_methods() 131 u16 val; in wps_validate_config_methods() local 142 val = WPA_GET_BE16(config_methods); in wps_validate_config_methods() 143 if (!valid_config_methods(val, wps2)) { in wps_validate_config_methods() 145 "Methods attribute value 0x%04x", val); in wps_validate_config_methods() 155 u16 val; in wps_validate_ap_config_methods() local [all …]
|
/hostap-latest/tests/hwsim/ |
D | nl80211.py | 322 def build_nl80211_attr(id, val): argument 323 attr = struct.pack("@HH", 4 + len(val), nl80211_attr[id]) + val 328 def build_nl80211_attr_u32(id, val): argument 329 return build_nl80211_attr(id, struct.pack("@I", val)) 331 def build_nl80211_attr_u16(id, val): argument 332 return build_nl80211_attr(id, struct.pack("@H", val)) 334 def build_nl80211_attr_u8(id, val): argument 335 return build_nl80211_attr(id, struct.pack("@B", val)) 340 def build_nl80211_attr_mac(id, val): argument 341 addr = struct.unpack('6B', binascii.unhexlify(val.replace(':', '')))
|
D | test_owe.py | 49 val = dev[0].get_status_field("key_mgmt") 50 if val != "OWE": 51 raise Exception("Unexpected key_mgmt: " + val) 226 val = dev[0].get_status_field("key_mgmt") 227 if val != "OWE": 228 raise Exception("Unexpected key_mgmt: " + val) 275 val = dev[0].get_status_field("key_mgmt") 276 if val != "OWE": 277 raise Exception("Unexpected key_mgmt: " + val) 334 val = dev[0].get_status_field("key_mgmt") [all …]
|
D | test_erp.py | 389 val = l.strip().split(':')[3].replace(' ', '') 390 msk = binascii.unhexlify(val) 392 val = l.strip().split(':')[3].replace(' ', '') 393 emsk = binascii.unhexlify(val) 395 val = l.strip().split(':')[3].replace(' ', '') 396 rRK = binascii.unhexlify(val) 398 val = l.strip().split(':')[3].replace(' ', '') 399 rIK = binascii.unhexlify(val) 401 val = l.strip().split(':')[3].replace(' ', '') 402 pmk = binascii.unhexlify(val) [all …]
|
D | test_ieee8021x.py | 162 for val in vals: 163 if int(stop[val]) <= int(start[val]): 164 raise Exception(val + " did not increase") 473 for param, mibparam, val in tests: 474 if "OK" not in hapd.request("EAPOL_SET %s %s %s" % (addr0, param, val)): 475 raise Exception("Failed to set %s %s" % (param, val)) 477 if mib[mibparam] != val: 478 raise Exception("Unexpected %s value: %s (expected %s)" % (param, mib[mibparam], val)) 519 val = int(mib['aWhile']) 520 if val > 0: [all …]
|
/hostap-latest/wpa_supplicant/ |
D | main_winsvc.c | 67 DWORD buflen, val; in read_interface() local 114 buflen = sizeof(val); in read_interface() 116 (LPBYTE) &val, &buflen); in read_interface() 117 if (ret == ERROR_SUCCESS && buflen == sizeof(val)) in read_interface() 118 skip_on_error = val; in read_interface() 140 DWORD val, buflen, i; in wpa_supplicant_thread() local 156 buflen = sizeof(val); in wpa_supplicant_thread() 158 (LPBYTE) &val, &buflen); in wpa_supplicant_thread() 159 if (ret == ERROR_SUCCESS && buflen == sizeof(val)) { in wpa_supplicant_thread() 160 params.wpa_debug_level = val; in wpa_supplicant_thread() [all …]
|
D | config_winreg.c | 121 DWORD val, buflen; in wpa_config_read_reg_dword() local 124 buflen = sizeof(val); in wpa_config_read_reg_dword() 125 ret = RegQueryValueEx(hk, name, NULL, NULL, (LPBYTE) &val, &buflen); in wpa_config_read_reg_dword() 126 if (ret == ERROR_SUCCESS && buflen == sizeof(val)) { in wpa_config_read_reg_dword() 127 wpa_printf(MSG_DEBUG, TSTR "=%d", name, (int) val); in wpa_config_read_reg_dword() 128 *_val = val; in wpa_config_read_reg_dword() 140 TCHAR *val; in wpa_config_read_reg_string() local 146 val = os_malloc(buflen); in wpa_config_read_reg_string() 147 if (val == NULL) in wpa_config_read_reg_string() 150 ret = RegQueryValueEx(hk, name, NULL, NULL, (LPBYTE) val, &buflen); in wpa_config_read_reg_string() [all …]
|
D | config.c | 205 int val, *dst; in wpa_config_parse_int_impl() local 209 val = strtol(value, &end, 0); in wpa_config_parse_int_impl() 216 if (check_range && val < (long) data->param3) { in wpa_config_parse_int_impl() 218 "min_value=%ld)", line, data->name, val, in wpa_config_parse_int_impl() 223 if (check_range && val > (long) data->param4) { in wpa_config_parse_int_impl() 225 "max_value=%ld)", line, data->name, val, in wpa_config_parse_int_impl() 230 if (*dst == val) in wpa_config_parse_int_impl() 233 *dst = val; in wpa_config_parse_int_impl() 673 int val = 0, last, errors = 0; in wpa_config_parse_proto() local 692 val |= WPA_PROTO_WPA; in wpa_config_parse_proto() [all …]
|
/hostap-latest/src/crypto/ |
D | aes-gcm.c | 18 u32 val; in inc32() local 19 val = WPA_GET_BE32(block + AES_BLOCK_SIZE - 4); in inc32() 20 val++; in inc32() 21 WPA_PUT_BE32(block + AES_BLOCK_SIZE - 4, val); in inc32() 38 u32 val; in shift_right_block() local 40 val = WPA_GET_BE32(v + 12); in shift_right_block() 41 val >>= 1; in shift_right_block() 43 val |= 0x80000000; in shift_right_block() 44 WPA_PUT_BE32(v + 12, val); in shift_right_block() 46 val = WPA_GET_BE32(v + 8); in shift_right_block() [all …]
|
/hostap-latest/src/tls/ |
D | asn1.c | 293 unsigned long val; in asn1_parse_oid() local 302 val = 0; in asn1_parse_oid() 308 val = (val << 7) | (tmp & 0x7f); in asn1_parse_oid() 321 oid->oid[0] = val / 40; in asn1_parse_oid() 324 oid->oid[1] = val - oid->oid[0] * 40; in asn1_parse_oid() 327 oid->oid[oid->len++] = val; in asn1_parse_oid() 393 unsigned long val = 0; in asn1_bit_string_to_long() local 401 val |= rotate_bits(*pos++); in asn1_bit_string_to_long() 403 val |= ((unsigned long) rotate_bits(*pos++)) << 8; in asn1_bit_string_to_long() 405 val |= ((unsigned long) rotate_bits(*pos++)) << 16; in asn1_bit_string_to_long() [all …]
|
/hostap-latest/src/common/ |
D | sae_pk.c | 99 static u8 d_permute(u8 val, unsigned int iter) in d_permute() argument 102 return val; in d_permute() 103 return d_permute(d_perm_table[val], iter - 1); in d_permute() 107 static u8 d_invert(u8 val) in d_invert() argument 109 if (val > 0 && val < 16) in d_invert() 110 return 16 - val; in d_invert() 111 return val; in d_invert() 118 u8 val = 0; in d_check_char() local 135 val = d_mult_table[val * 32 + p]; in d_check_char() 138 return sae_pk_base32_table[d_invert(val)]; in d_check_char() [all …]
|
D | dragonfly.c | 114 const struct crypto_bignum *val) in dragonfly_is_quadratic_residue_blind() argument 141 crypto_bignum_mulmod(val, r, prime, num) < 0 || in dragonfly_is_quadratic_residue_blind() 185 static int dragonfly_get_rand_2_to_r_1(struct crypto_bignum *val, in dragonfly_get_rand_2_to_r_1() argument 188 return crypto_bignum_rand(val, order) == 0 && in dragonfly_get_rand_2_to_r_1() 189 !crypto_bignum_is_zero(val) && in dragonfly_get_rand_2_to_r_1() 190 !crypto_bignum_is_one(val); in dragonfly_get_rand_2_to_r_1() 222 int dragonfly_sqrt(struct crypto_ec *ec, const struct crypto_bignum *val, in dragonfly_sqrt() argument 246 crypto_bignum_exptmod(val, tmp, prime, res) < 0) in dragonfly_sqrt()
|
/hostap-latest/wpa_supplicant/examples/ |
D | wpas-dbus-new.py | 45 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'BSSID', 48 for item in val: 51 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'SSID', 53 ssid = byte_array_to_string(val) 55 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'WPA', 58 if len(val["KeyMgmt"]) > 0: 60 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'RSN', 63 if len(val["KeyMgmt"]) > 0: 69 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'Rates', 71 if len(val) > 0: [all …]
|
D | wpas-dbus-new-signals.py | 52 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'BSSID', 55 for item in val: 58 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'SSID', 60 ssid = byte_array_to_string(val) 62 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'WPA', 65 if val != None: 67 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'RSN', 70 if val != None: 76 val = net_obj.Get(WPAS_DBUS_BSS_INTERFACE, 'Rates', 78 if len(val) > 0: [all …]
|
/hostap-latest/wlantest/ |
D | tkip.c | 20 static inline u16 RotR1(u16 val) in RotR1() argument 22 return (val >> 1) | (val << 15); in RotR1() 26 static inline u8 Lo8(u16 val) in Lo8() argument 28 return val & 0xff; in Lo8() 32 static inline u8 Hi8(u16 val) in Hi8() argument 34 return val >> 8; in Hi8() 38 static inline u16 Lo16(u32 val) in Lo16() argument 40 return val & 0xffff; in Lo16() 44 static inline u16 Hi16(u32 val) in Hi16() argument 46 return val >> 16; in Hi16() [all …]
|
/hostap-latest/wpadebug/src/w1/fi/wpadebug/ |
D | WifiReceiver.java | 35 String val; in onReceive() local 36 val = intent.getStringExtra("bssid"); in onReceive() 37 if (val != null) in onReceive() 38 Log.d(TAG, " bssid: " + val); in onReceive() 49 int val; in onReceive() local 50 val = intent.getIntExtra("newRssi", -1); in onReceive() 51 Log.d(TAG, " newRssi: " + val); in onReceive()
|
/hostap-latest/hs20/server/ |
D | spp_server.c | 393 char *val; in add_text_node_conf() local 394 val = db_get_osu_config_val(ctx, realm, field); in add_text_node_conf() 395 xml_node_create_text(ctx->xml, parent, NULL, name, val ? val : ""); in add_text_node_conf() 396 os_free(val); in add_text_node_conf() 404 char *val; in add_text_node_conf_corrupt() local 406 val = db_get_osu_config_val(ctx, realm, field); in add_text_node_conf_corrupt() 407 if (val) { in add_text_node_conf_corrupt() 410 len = os_strlen(val); in add_text_node_conf_corrupt() 412 if (val[len - 1] == '0') in add_text_node_conf_corrupt() 413 val[len - 1] = '1'; in add_text_node_conf_corrupt() [all …]
|
/hostap-latest/src/ap/ |
D | wmm.c | 217 u16 val, surplus; in wmm_process_tspec() local 225 val = le_to_host16(tspec->nominal_msdu_size); in wmm_process_tspec() 227 val & 0x7fff, val & 0x8000 ? " (fixed)" : ""); in wmm_process_tspec() 232 val = le_to_host16(tspec->surplus_bandwidth_allowance); in wmm_process_tspec() 234 val >> 13, 10000 * (val & 0x1fff) / 0x2000); in wmm_process_tspec() 236 val = le_to_host16(tspec->nominal_msdu_size); in wmm_process_tspec() 237 if (val == 0) { in wmm_process_tspec() 242 pps = ((le_to_host32(tspec->mean_data_rate) / 8) + val - 1) / val; in wmm_process_tspec()
|
D | accounting.c | 40 u8 *val; in accounting_msg() local 72 val = ieee802_1x_get_identity(sta->eapol_sm, &len); in accounting_msg() 75 if (!val && sta->identity) { in accounting_msg() 76 val = (u8 *) sta->identity; in accounting_msg() 82 if (!val) { in accounting_msg() 85 val = (u8 *) buf; in accounting_msg() 89 if (!radius_msg_add_attr(msg, RADIUS_ATTR_USER_NAME, val, in accounting_msg() 105 val = ieee802_1x_get_radius_class(sta->eapol_sm, &len, in accounting_msg() 107 if (val == NULL) in accounting_msg() 111 val, len)) { in accounting_msg()
|