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.c161 winChkName(const u_char *un, size_t unlen, struct winentry *wep, int chksum) in winChkName() argument
170 if (wep->weCnt & WIN_LAST) in winChkName()
171 chksum = wep->weChksum; in winChkName()
172 else if (chksum != wep->weChksum) in winChkName()
180 i = ((wep->weCnt & WIN_CNT) - 1) * WIN_CHARS; in winChkName()
190 if ((wep->weCnt & WIN_LAST) && (len - i > WIN_CHARS)) in winChkName()
197 memcpy(p, wep->wePart1, sizeof(wep->wePart1)); in winChkName()
198 p += sizeof(wep->wePart1) / sizeof(*p); in winChkName()
199 memcpy(p, wep->wePart2, sizeof(wep->wePart2)); in winChkName()
200 p += sizeof(wep->wePart2) / sizeof(*p); in winChkName()
[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()
140 wep = "WPA1-TKIP"; in wep2str()
144 wep = "WPA1-TKIP-PSK"; in wep2str()
148 wep = "WPA1-CCMP"; in wep2str()
152 wep = "WPA1-CCMP-PSK"; in wep2str()
[all …]
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_conv.c518 unix2winfn(const u_char *un, size_t unlen, struct winentry *wep, int cnt, in unix2winfn() argument
539 memset(wep, 0xff, sizeof(*wep)); in unix2winfn()
540 wep->weCnt = cnt; in unix2winfn()
541 wep->weAttributes = ATTR_WIN95; in unix2winfn()
542 wep->weReserved1 = 0; in unix2winfn()
543 wep->weChksum = chksum; 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()
[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.c815 hostapd_config_free_wep(&conf->ssid.wep); in hostapd_config_free_bss()
1272 int wep, i; in hostapd_config_check_bss() local
1274 wep = bss->default_wep_key_len > 0 || in hostapd_config_check_bss()
1277 if (bss->ssid.wep.keys_set) { in hostapd_config_check_bss()
1278 wep = 1; in hostapd_config_check_bss()
1283 if (wep) { in hostapd_config_check_bss()
1417 bss->ssid.wep.keys_set && bss->wpa == 0) { in hostapd_config_check_bss()
1643 bss->ssid.wep.default_len = bss->default_wep_key_len; in hostapd_set_security_params()
1647 } else if (full_config && bss->ssid.wep.keys_set) { in hostapd_set_security_params()
1648 if (bss->ssid.wep.len[0] >= 13) in hostapd_set_security_params()
[all …]
H A Dwps_hostapd.c1238 } else if (conf->ssid.wep.keys_set && conf->ssid.wep.key[0]) { in hostapd_init_wps()
1239 wps->network_key = os_malloc(conf->ssid.wep.len[0]); in hostapd_init_wps()
1242 os_memcpy(wps->network_key, conf->ssid.wep.key[0], in hostapd_init_wps()
1243 conf->ssid.wep.len[0]); in hostapd_init_wps()
1244 wps->network_key_len = conf->ssid.wep.len[0]; in hostapd_init_wps()
1488 } else if (conf->ssid.wep.keys_set && conf->ssid.wep.key[0]) { in hostapd_update_wps()
1489 wps->network_key = os_malloc(conf->ssid.wep.len[0]); in hostapd_update_wps()
1492 os_memcpy(wps->network_key, conf->ssid.wep.key[0], in hostapd_update_wps()
1493 conf->ssid.wep.len[0]); in hostapd_update_wps()
1494 wps->network_key_len = conf->ssid.wep.len[0]; in hostapd_update_wps()
H A Dhostapd.c383 idx = ssid->wep.idx; in hostapd_broadcast_wep_set()
384 if (ssid->wep.default_len && ssid->wep.key[idx] && in hostapd_broadcast_wep_set()
387 1, NULL, 0, ssid->wep.key[idx], in hostapd_broadcast_wep_set()
388 ssid->wep.len[idx], in hostapd_broadcast_wep_set()
749 if (hapd->conf->ssid.wep.default_len) { in hostapd_setup_encryption()
761 if (hapd->conf->ssid.wep.key[i] && in hostapd_setup_encryption()
763 i == hapd->conf->ssid.wep.idx, NULL, 0, in hostapd_setup_encryption()
764 hapd->conf->ssid.wep.key[i], in hostapd_setup_encryption()
765 hapd->conf->ssid.wep.len[i], in hostapd_setup_encryption()
766 i == hapd->conf->ssid.wep.idx ? 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.h117 struct hostapd_wep_keys wep; member
H A Dieee802_11.c300 privacy = hapd->conf->ssid.wep.keys_set; in hostapd_own_capab_info()
6435 if (ssid->wep.key[i] && in hostapd_set_wds_encryption()
6437 0, i == ssid->wep.idx, NULL, 0, in hostapd_set_wds_encryption()
6438 ssid->wep.key[i], ssid->wep.len[i], in hostapd_set_wds_encryption()
6439 i == ssid->wep.idx ? in hostapd_set_wds_encryption()
H A Dbeacon.c2453 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.c600 struct hostapd_wep_keys *wep = &bss->ssid.wep; in wpa_supplicant_conf_ap() local
605 wep->key[i] = os_memdup(ssid->wep_key[i], in wpa_supplicant_conf_ap()
607 if (wep->key[i] == NULL) in wpa_supplicant_conf_ap()
609 wep->len[i] = ssid->wep_key_len[i]; in wpa_supplicant_conf_ap()
611 wep->idx = ssid->wep_tx_keyidx; in wpa_supplicant_conf_ap()
612 wep->keys_set = 1; in wpa_supplicant_conf_ap()
706 bss->ssid.wep.default_len = bss->default_wep_key_len; in wpa_supplicant_conf_ap()
713 } else if (bss->ssid.wep.keys_set) { in wpa_supplicant_conf_ap()
715 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.c765 static int hostapd_config_read_wep(struct hostapd_wep_keys *wep, int keyidx, in hostapd_config_read_wep() argument
776 bin_clear_free(wep->key[keyidx], wep->len[keyidx]); in hostapd_config_read_wep()
777 wep->key[keyidx] = NULL; in hostapd_config_read_wep()
778 wep->len[keyidx] = 0; in hostapd_config_read_wep()
780 if (wep->key[i]) in hostapd_config_read_wep()
784 wep->keys_set = 0; in hostapd_config_read_wep()
788 if (wep->key[keyidx] != NULL) in hostapd_config_read_wep()
795 wep->key[keyidx] = os_memdup(val + 1, len); in hostapd_config_read_wep()
796 if (wep->key[keyidx] == NULL) in hostapd_config_read_wep()
798 wep->len[keyidx] = len; 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