Home
last modified time | relevance | path

Searched refs:wep (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/usr.sbin/makefs/msdos/
H A Dmsdosfs_conv.c197 memcpy(p, wep->wePart1, sizeof(wep->wePart1)); in winChkName()
199 memcpy(p, wep->wePart2, sizeof(wep->wePart2)); in winChkName()
201 memcpy(p, wep->wePart3, sizeof(wep->wePart3)); in winChkName()
260 memset(wep, 0xff, sizeof(*wep)); in unix2winfn()
261 wep->weCnt = cnt; in unix2winfn()
263 wep->weReserved1 = 0; in unix2winfn()
264 wep->weChksum = chksum; in unix2winfn()
265 wep->weReserved2 = 0; in unix2winfn()
271 memcpy(wep->wePart1, p, sizeof(wep->wePart1)); in unix2winfn()
273 memcpy(wep->wePart2, p, sizeof(wep->wePart2)); in unix2winfn()
[all …]
H A Ddirentry.h138 int unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
140 int winChkName(const u_char *un, size_t unlen, struct winentry *wep,
/freebsd/tools/tools/net80211/stumbler/
H A Dstumbler.c84 int wep; member
119 char* wep = 0; in wep2str() local
124 wep = ""; in wep2str()
128 wep = "WEP"; in wep2str()
132 wep = "WPA1"; in wep2str()
136 wep = "WPA?"; in wep2str()
156 wep = "i"; in wep2str()
174 memcpy(res, wep, strlen(wep)); in wep2str()
410 wep = wep2str(node->wep); in display_node()
411 assert(wep); in display_node()
[all …]
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_conv.c539 memset(wep, 0xff, sizeof(*wep)); in unix2winfn()
540 wep->weCnt = cnt; in unix2winfn()
542 wep->weReserved1 = 0; in unix2winfn()
544 wep->weReserved2 = 0; in unix2winfn()
550 for (wcp = wep->wePart1, i = sizeof(wep->wePart1)/2; --i >= 0 && !end;) { in unix2winfn()
557 for (wcp = wep->wePart2, i = sizeof(wep->wePart2)/2; --i >= 0 && !end;) { in unix2winfn()
564 for (wcp = wep->wePart3, i = sizeof(wep->wePart3)/2; --i >= 0 && !end;) { in unix2winfn()
573 wep->weCnt |= end; in unix2winfn()
656 for (cp = wep->wePart1, i = sizeof(wep->wePart1)/2; --i >= 0;) { in win2unixfn()
676 for (cp = wep->wePart2, i = sizeof(wep->wePart2)/2; --i >= 0;) { in win2unixfn()
[all …]
H A Ddirentry.h154 int unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt,
158 int win2unixfn(struct mbnambuf *nbp, struct winentry *wep, int chksum,
/freebsd/sys/net80211/
H A Dieee80211_crypto_wep.c59 static const struct ieee80211_cipher wep = { variable
203 M_PREPEND(m, wep.ic_header, IEEE80211_M_NOWAIT); in wep_encap()
207 ovbcopy(ivp + wep.ic_header, ivp, hdrlen); in wep_encap()
270 ovbcopy(mtod(m, void *), mtod(m, uint8_t *) + wep.ic_header, hdrlen); in wep_decap()
271 m_adj(m, wep.ic_header); in wep_decap()
275 m_adj(m, -wep.ic_trailer); in wep_decap()
375 off = hdrlen + wep.ic_header; in wep_encrypt()
458 off = hdrlen + wep.ic_header; in wep_decrypt()
459 data_len = m->m_pkthdr.len - (off + wep.ic_trailer); in wep_decrypt()
517 IEEE80211_CRYPTO_MODULE(wep, 1);
/freebsd/contrib/wpa/src/ap/
H A Dap_config.c766 hostapd_config_free_wep(&conf->ssid.wep); in hostapd_config_free_bss()
1226 int wep, i; in hostapd_config_check_bss() local
1228 wep = bss->default_wep_key_len > 0 || in hostapd_config_check_bss()
1231 if (bss->ssid.wep.keys_set) { in hostapd_config_check_bss()
1232 wep = 1; in hostapd_config_check_bss()
1237 if (wep) { in hostapd_config_check_bss()
1368 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
1552 } else if (full_config && bss->ssid.wep.keys_set) { in hostapd_set_security_params()
1553 if (bss->ssid.wep.len[0] >= 13) in hostapd_set_security_params()
1565 } else if (bss->ssid.wep.keys_set) { in hostapd_set_security_params()
[all …]
H A Dwps_hostapd.c1237 } else if (conf->ssid.wep.keys_set && conf->ssid.wep.key[0]) { in hostapd_init_wps()
1238 wps->network_key = os_malloc(conf->ssid.wep.len[0]); in hostapd_init_wps()
1241 os_memcpy(wps->network_key, conf->ssid.wep.key[0], in hostapd_init_wps()
1242 conf->ssid.wep.len[0]); in hostapd_init_wps()
1243 wps->network_key_len = conf->ssid.wep.len[0]; in hostapd_init_wps()
1487 } else if (conf->ssid.wep.keys_set && conf->ssid.wep.key[0]) { in hostapd_update_wps()
1488 wps->network_key = os_malloc(conf->ssid.wep.len[0]); in hostapd_update_wps()
1491 os_memcpy(wps->network_key, conf->ssid.wep.key[0], in hostapd_update_wps()
1492 conf->ssid.wep.len[0]); in hostapd_update_wps()
1493 wps->network_key_len = conf->ssid.wep.len[0]; in hostapd_update_wps()
H A Dhostapd.c341 idx = ssid->wep.idx; in hostapd_broadcast_wep_set()
342 if (ssid->wep.default_len && ssid->wep.key[idx] && in hostapd_broadcast_wep_set()
345 1, NULL, 0, ssid->wep.key[idx], in hostapd_broadcast_wep_set()
346 ssid->wep.len[idx], in hostapd_broadcast_wep_set()
568 if (hapd->conf->ssid.wep.default_len) { in hostapd_setup_encryption()
580 if (hapd->conf->ssid.wep.key[i] && in hostapd_setup_encryption()
583 hapd->conf->ssid.wep.key[i], in hostapd_setup_encryption()
584 hapd->conf->ssid.wep.len[i], in hostapd_setup_encryption()
585 i == hapd->conf->ssid.wep.idx ? in hostapd_setup_encryption()
592 if (hapd->conf->ssid.wep.key[i] && in hostapd_setup_encryption()
[all …]
H A Dvlan_init.c30 if (!hapd->conf->ssid.wep.key[i]) in vlan_if_add()
H A Dap_config.h111 struct hostapd_wep_keys wep; member
H A Dieee802_11.c262 privacy = hapd->conf->ssid.wep.keys_set; in hostapd_own_capab_info()
6398 if (ssid->wep.key[i] && in hostapd_set_wds_encryption()
6400 0, i == ssid->wep.idx, NULL, 0, in hostapd_set_wds_encryption()
6401 ssid->wep.key[i], ssid->wep.len[i], in hostapd_set_wds_encryption()
6402 i == ssid->wep.idx ? in hostapd_set_wds_encryption()
H A Dbeacon.c1693 params->privacy |= hapd->conf->ssid.wep.keys_set || in ieee802_11_build_ap_params()
/freebsd/tools/tools/net80211/w00t/libw00t/
H A Dw00t.c275 int str2wep(char *wep, int *len, char *str) in str2wep() argument
295 *wep = (unsigned char) x; in str2wep()
296 wep++; in str2wep()
H A Dw00t.h47 int str2wep(char *wep, int *len, char *str);
/freebsd/tools/tools/net80211/scripts/
H A Dsetup.wep16 ifconfig $WLAN wepkey 1:0x0123456789 deftxkey 1 wep
/freebsd/contrib/wpa/wpa_supplicant/
H A Dap.c563 struct hostapd_wep_keys *wep = &bss->ssid.wep; in wpa_supplicant_conf_ap() local
568 wep->key[i] = os_memdup(ssid->wep_key[i], in wpa_supplicant_conf_ap()
570 if (wep->key[i] == NULL) in wpa_supplicant_conf_ap()
572 wep->len[i] = ssid->wep_key_len[i]; in wpa_supplicant_conf_ap()
574 wep->idx = ssid->wep_tx_keyidx; in wpa_supplicant_conf_ap()
575 wep->keys_set = 1; in wpa_supplicant_conf_ap()
669 bss->ssid.wep.default_len = bss->default_wep_key_len; in wpa_supplicant_conf_ap()
676 } else if (bss->ssid.wep.keys_set) { in wpa_supplicant_conf_ap()
678 if (bss->ssid.wep.len[0] >= 13) in wpa_supplicant_conf_ap()
/freebsd/contrib/wpa/src/drivers/
H A Ddriver_ndis.c937 NDIS_802_11_WEP *wep; in wpa_driver_ndis_add_wep() local
942 wep = os_zalloc(len); in wpa_driver_ndis_add_wep()
943 if (wep == NULL) in wpa_driver_ndis_add_wep()
945 wep->Length = len; in wpa_driver_ndis_add_wep()
946 wep->KeyIndex = key_idx; in wpa_driver_ndis_add_wep()
948 wep->KeyIndex |= 1 << 31; in wpa_driver_ndis_add_wep()
951 wep->KeyIndex |= 1 << 30; in wpa_driver_ndis_add_wep()
953 wep->KeyLength = key_len; in wpa_driver_ndis_add_wep()
954 os_memcpy(wep->KeyMaterial, key, key_len); in wpa_driver_ndis_add_wep()
957 (u8 *) wep, len); in wpa_driver_ndis_add_wep()
[all …]
/freebsd/contrib/libedit/
H A Dvi.c1091 const wchar_t *wep, *wsp; in vi_history_word() local
1099 wep = wsp = NULL; in vi_history_word()
1108 wep = wp; in vi_history_word()
1116 len = (int)(wep - wsp); in vi_history_word()
1124 while (wsp < wep && cp < lim) in vi_history_word()
/freebsd/tools/tools/net80211/wesside/
H A DREADME3 http://tapir.cs.ucl.ac.uk/bittau-wep.pdf
/freebsd/contrib/wpa/hostapd/
H A Dconfig_file.c814 bin_clear_free(wep->key[keyidx], wep->len[keyidx]); in hostapd_config_read_wep()
815 wep->key[keyidx] = NULL; in hostapd_config_read_wep()
816 wep->len[keyidx] = 0; in hostapd_config_read_wep()
818 if (wep->key[i]) in hostapd_config_read_wep()
822 wep->keys_set = 0; in hostapd_config_read_wep()
826 if (wep->key[keyidx] != NULL) in hostapd_config_read_wep()
834 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
836 wep->len[keyidx] = len; in hostapd_config_read_wep()
844 wep->len[keyidx] = len; in hostapd_config_read_wep()
849 wep->keys_set++; in hostapd_config_read_wep()
[all …]
/freebsd/tools/tools/net80211/w00t/assoc/
H A Dassoc.c425 int wep; in get_probe_response() local
451 wep = (*data & IEEE80211_CAPINFO_PRIVACY) ? 1 : 0; in get_probe_response()
474 from, bssid, ssid, ess, wep); in get_probe_response()
/freebsd/tools/tools/net80211/w00t/
H A DREADME44 [For the next set of tools, refer to http://tapir.cs.ucl.ac.uk/bittau-wep.pdf
/freebsd/sys/dev/mwl/
H A Dmwlhal.h430 uint8_t wep[16]; /* enough for 128 bits */ member
/freebsd/usr.sbin/bsnmpd/modules/snmp_wlan/
H A Dwlan_tree.def144 1 wep

12