/hostap-latest/src/crypto/ |
D | aes-gcm.c | 36 static void shift_right_block(u8 *v) in shift_right_block() argument 40 val = WPA_GET_BE32(v + 12); in shift_right_block() 42 if (v[11] & 0x01) 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() 48 if (v[7] & 0x01) in shift_right_block() 50 WPA_PUT_BE32(v + 8, val); in shift_right_block() 52 val = WPA_GET_BE32(v + 4); in shift_right_block() 54 if (v[3] & 0x01) in shift_right_block() 56 WPA_PUT_BE32(v + 4, val); in shift_right_block() [all …]
|
D | sha1-internal.c | 144 #define R0(v,w,x,y,z,i) \ argument 145 z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \ 147 #define R1(v,w,x,y,z,i) \ argument 148 z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \ 150 #define R2(v,w,x,y,z,i) \ argument 151 z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30); 152 #define R3(v,w,x,y,z,i) \ argument 153 z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \ 155 #define R4(v,w,x,y,z,i) \ argument 156 z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \
|
D | aes-siv.c | 127 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt() local 146 if (aes_s2v(k1, key_len, num_elem + 1, _addr, _len, v)) in aes_siv_encrypt() 152 os_memcpy(iv, v, AES_BLOCK_SIZE); in aes_siv_encrypt() 156 v[8] &= 0x7f; in aes_siv_encrypt() 157 v[12] &= 0x7f; in aes_siv_encrypt() 158 return aes_ctr_encrypt(k2, key_len, v, crypt_pw, pwlen); in aes_siv_encrypt()
|
/hostap-latest/hostapd/ |
D | hostapd_cli_zephyr.c | 70 uint8_t v = 0U; in make_argv() local 76 v = (v << 3) | (t - '0'); in make_argv() 85 *cmd++ = v; in make_argv() 92 uint8_t v = 0U; in make_argv() local 98 v = (v << 4) | (t - '0'); in make_argv() 101 v = (v << 4) | (t - 'a' + 10); in make_argv() 103 v = (v << 4) | (t - 'A' + 10); in make_argv() 112 *cmd++ = v; in make_argv()
|
/hostap-latest/wpa_supplicant/ |
D | wpa_cli_zephyr.c | 276 uint8_t v = 0U; in make_argv() local 282 v = (v << 3) | (t - '0'); in make_argv() 291 *cmd++ = v; in make_argv() 298 uint8_t v = 0U; in make_argv() local 304 v = (v << 4) | (t - '0'); in make_argv() 307 v = (v << 4) | (t - 'a' + 10); in make_argv() 309 v = (v << 4) | (t - 'A' + 10); in make_argv() 318 *cmd++ = v; in make_argv()
|
/hostap-latest/src/tls/ |
D | pkcs5.c | 404 unsigned int u, v, S_len, P_len, i; in pkcs12_key_gen() local 410 v = 64; in pkcs12_key_gen() 413 D = os_malloc(v); in pkcs12_key_gen() 416 os_memset(D, id, v); in pkcs12_key_gen() 419 S_len = v * ((salt_len + v - 1) / v); in pkcs12_key_gen() 420 P_len = v * ((pw_len + v - 1) / v); in pkcs12_key_gen() 434 B = os_malloc(v); in pkcs12_key_gen() 444 len[0] = v; in pkcs12_key_gen() 469 for (i = 0; i < v; i++) in pkcs12_key_gen() 471 inc_byte_array(B, v); in pkcs12_key_gen() [all …]
|
D | libtommath.c | 765 mp_int x, y, u, v, A, B, C, D; in mp_invmod_slow() local 774 if ((res = mp_init_multi(&x, &y, &u, &v, in mp_invmod_slow() 797 if ((res = mp_copy (&y, &v)) != MP_OKAY) { in mp_invmod_slow() 830 while (mp_iseven (&v) == 1) { in mp_invmod_slow() 832 if ((res = mp_div_2 (&v, &v)) != MP_OKAY) { in mp_invmod_slow() 855 if (mp_cmp (&u, &v) != MP_LT) { in mp_invmod_slow() 857 if ((res = mp_sub (&u, &v, &u)) != MP_OKAY) { in mp_invmod_slow() 870 if ((res = mp_sub (&v, &u, &v)) != MP_OKAY) { in mp_invmod_slow() 890 if (mp_cmp_d (&v, 1) != MP_EQ) { in mp_invmod_slow() 912 LBL_ERR:mp_clear_multi (&x, &y, &u, &v, &A, &B, &C, &D, NULL); in mp_invmod_slow()
|
/hostap-latest/src/utils/ |
D | common.h | 44 static inline unsigned short bswap_16(unsigned short v) in bswap_16() argument 46 return ((v & 0xff) << 8) | (v >> 8); in bswap_16() 49 static inline unsigned int bswap_32(unsigned int v) in bswap_32() argument 51 return ((v & 0xff) << 24) | ((v & 0xff00) << 8) | in bswap_32() 52 ((v & 0xff0000) >> 8) | (v >> 24); in bswap_32() 134 static inline unsigned short wpa_swap_16(unsigned short v) in wpa_swap_16() argument 136 return ((v & 0xff) << 8) | (v >> 8); in wpa_swap_16() 139 static inline unsigned int wpa_swap_32(unsigned int v) in wpa_swap_32() argument 141 return ((v & 0xff) << 24) | ((v & 0xff00) << 8) | in wpa_swap_32() 142 ((v & 0xff0000) >> 8) | (v >> 24); in wpa_swap_32()
|
/hostap-latest/src/drivers/ |
D | driver_bsd.c | 417 int v; in bsd_configure_wpa() local 421 v = IEEE80211_CIPHER_AES_CCM; in bsd_configure_wpa() 424 v = IEEE80211_CIPHER_TKIP; in bsd_configure_wpa() 427 v = IEEE80211_CIPHER_WEP; in bsd_configure_wpa() 430 v = IEEE80211_CIPHER_WEP; in bsd_configure_wpa() 433 v = IEEE80211_CIPHER_NONE; in bsd_configure_wpa() 441 __func__, ciphernames[v], v); in bsd_configure_wpa() 442 if (set80211param(priv, IEEE80211_IOC_MCASTCIPHER, v)) { in bsd_configure_wpa() 445 v, ciphernames[v]); in bsd_configure_wpa() 448 if (v == IEEE80211_CIPHER_WEP) { in bsd_configure_wpa() [all …]
|
D | driver_atheros.c | 280 int v; in atheros_configure_wpa() local 284 v = IEEE80211_CIPHER_AES_CCM; in atheros_configure_wpa() 288 v = IEEE80211_CIPHER_AES_CCM_256; in atheros_configure_wpa() 291 v = IEEE80211_CIPHER_AES_GCM; in atheros_configure_wpa() 294 v = IEEE80211_CIPHER_AES_GCM_256; in atheros_configure_wpa() 298 v = IEEE80211_CIPHER_TKIP; in atheros_configure_wpa() 301 v = IEEE80211_CIPHER_WEP; in atheros_configure_wpa() 304 v = IEEE80211_CIPHER_WEP; in atheros_configure_wpa() 307 v = IEEE80211_CIPHER_NONE; in atheros_configure_wpa() 314 wpa_printf(MSG_DEBUG, "%s: group key cipher=%d", __func__, v); in atheros_configure_wpa() [all …]
|
/hostap-latest/tests/hwsim/ |
D | test_wpas_ctrl.py | 563 for v in values: 564 if v[2]: 565 set_cred_quoted(dev[0], id, v[0], v[1]) 567 set_cred(dev[0], id, v[0], v[1]) 568 val = dev[0].get_cred(id, v[0]) 569 if len(v) == 4: 570 expect = v[3] 572 expect = v[1] 574 raise Exception("Unexpected GET_CRED value for {}: {} != {}".format(v[0], val, expect)) 1079 for v in vals: [all …]
|
D | hostapd.py | 667 for f, v in list(params.items()): 670 if isinstance(v, list): 671 for val in v: 674 hapd.set(f, v) 1041 for k, v in list(params.items()): 1042 f.write("{}={}\n".format(k,v))
|
/hostap-latest/src/common/ |
D | ieee802_11_common.c | 1223 int num, v; in hostapd_config_wmm_ac() local 1249 v = atoi(val); in hostapd_config_wmm_ac() 1250 if (v < 1 || v > 255) { in hostapd_config_wmm_ac() 1251 wpa_printf(MSG_ERROR, "Invalid AIFS value %d", v); in hostapd_config_wmm_ac() 1254 ac->aifs = v; in hostapd_config_wmm_ac() 1256 v = atoi(val); in hostapd_config_wmm_ac() 1257 if (v < 0 || v > 15) { in hostapd_config_wmm_ac() 1258 wpa_printf(MSG_ERROR, "Invalid cwMin value %d", v); in hostapd_config_wmm_ac() 1261 ac->cwmin = v; in hostapd_config_wmm_ac() 1263 v = atoi(val); in hostapd_config_wmm_ac() [all …]
|
D | dpp_pkex.c | 907 const struct wpabuf *B_pub, const u8 *v) in dpp_pkex_build_commit_reveal_resp() argument 960 wpabuf_put_data(clear, v, curve->hash_len - 1); in dpp_pkex_build_commit_reveal_resp() 961 wpabuf_put_u8(clear, v[curve->hash_len - 1] ^ 0x01); in dpp_pkex_build_commit_reveal_resp() 969 wpabuf_put_data(clear, v, curve->hash_len); in dpp_pkex_build_commit_reveal_resp() 1036 u8 u[DPP_MAX_HASH_LEN], v[DPP_MAX_HASH_LEN]; in dpp_pkex_rx_commit_reveal_req() local 1177 if (dpp_hmac_vector(curve->hash_len, Lx, Lx_len, num_elem, addr, len, v) in dpp_pkex_rx_commit_reveal_req() 1180 wpa_hexdump(MSG_DEBUG, "DPP: v", v, curve->hash_len); in dpp_pkex_rx_commit_reveal_req() 1182 msg = dpp_pkex_build_commit_reveal_resp(pkex, B_pub, v); in dpp_pkex_rx_commit_reveal_req() 1213 u8 v[DPP_MAX_HASH_LEN]; in dpp_pkex_rx_commit_reveal_resp() local 1313 if (dpp_hmac_vector(curve->hash_len, Lx, Lx_len, num_elem, addr, len, v) in dpp_pkex_rx_commit_reveal_resp() [all …]
|
/hostap-latest/wpa_supplicant/dbus/ |
D | dbus_dict_helpers.c | 954 const char *v; in _wpa_dbus_dict_fill_value_from_variant() local 958 dbus_message_iter_get_basic(iter, &v); in _wpa_dbus_dict_fill_value_from_variant() 960 __func__, v); in _wpa_dbus_dict_fill_value_from_variant() 961 entry->str_value = os_strdup(v); in _wpa_dbus_dict_fill_value_from_variant() 966 dbus_message_iter_get_basic(iter, &v); in _wpa_dbus_dict_fill_value_from_variant() 968 __func__, wpa_debug_show_keys ? v : "[omitted]"); in _wpa_dbus_dict_fill_value_from_variant() 969 entry->str_value = os_strdup(v); in _wpa_dbus_dict_fill_value_from_variant()
|
/hostap-latest/src/fst/ |
D | fst.h | 32 #define FST_LLT_VAL_TO_MS(v) (((u32) (v)) * 4 / 125) argument
|
/hostap-latest/src/ap/ |
D | ap_config.c | 1112 struct hostapd_vlan *v = vlan; in hostapd_vlan_valid() local 1126 while (v) { in hostapd_vlan_valid() 1127 if (!vlan_compare(&v->vlan_desc, vlan_desc) || in hostapd_vlan_valid() 1128 v->vlan_id == VLAN_ID_WILDCARD) in hostapd_vlan_valid() 1130 v = v->next; in hostapd_vlan_valid() 1138 struct hostapd_vlan *v = vlan; in hostapd_get_vlan_id_ifname() local 1139 while (v) { in hostapd_get_vlan_id_ifname() 1140 if (v->vlan_id == vlan_id) in hostapd_get_vlan_id_ifname() 1141 return v->ifname; in hostapd_get_vlan_id_ifname() 1142 v = v->next; in hostapd_get_vlan_id_ifname()
|
/hostap-latest/wlantest/ |
D | tkip.c | 56 static inline u16 Mk16_le(u16 *v) in Mk16_le() argument 58 return le_to_host16(*v); in Mk16_le() 99 static inline u16 _S_(u16 v) in _S_() argument 101 u16 t = Sbox[Hi8(v)]; in _S_() 102 return Sbox[Lo8(v)] ^ ((t << 8) | (t >> 8)); in _S_()
|
/hostap-latest/wpadebug/src/w1/fi/wpadebug/ |
D | WpaCredActivity.java | 198 public void onCreateContextMenu(android.view.ContextMenu menu, View v, in onCreateContextMenu() argument 201 menu.add(0, v.getId(), 0, "Delete"); in onCreateContextMenu() 223 protected void onListItemClick(ListView l, View v, int position, long id) in onListItemClick() argument
|
D | WpaCommandListActivity.java | 78 protected void onListItemClick(ListView l, View v, int position, long id) in onListItemClick() argument
|
D | CommandListActivity.java | 96 protected void onListItemClick(ListView l, View v, int position, long id) in onListItemClick() argument
|
/hostap-latest/tests/hwsim/auth_serv/ |
D | ec2-ca.pem | 12 v+QeMLDKAY3+9dbdzPit9WCg7erYxa0LsV6ZTr4wIYwUIkybksD1Bwlq7Sw/lVpO
|
D | user.key.pkcs8 | 26 v++PKOwtZKpasnA7lblRZp8M/XFSOj591EBzwKGsXkOme7StZTngKjZKzf2xE56p
|
/hostap-latest/tests/hwsim/auth_serv/iCA-server/ |
D | server.req | 10 KoZIhvcNAQELBQADggEBACNfUGcccnZoS3TqbWbfYMtWhi0a80xuWb+8v//aO0D2
|
/hostap-latest/tests/hwsim/auth_serv/iCA-user/private/ |
D | cakey.pem | 8 jWVfZBLNAgMBAAECggEAJ3Ghm+lsGK8Yz2q9OSp9+v/bdjZOfNkq5sTasdVZ70Zt
|