Home
last modified time | relevance | path

Searched refs:psk_len (Results 1 – 23 of 23) sorted by relevance

/freebsd/contrib/wpa/src/eap_common/
H A Deap_gpsk_common.c110 const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_helper() argument
137 if (psk_len < mk_len) in eap_gpsk_derive_keys_helper()
140 data_len = 2 + psk_len + 6 + seed_len; in eap_gpsk_derive_keys_helper()
145 WPA_PUT_BE16(pos, psk_len); in eap_gpsk_derive_keys_helper()
147 os_memcpy(pos, psk, psk_len); in eap_gpsk_derive_keys_helper()
148 pos += psk_len; in eap_gpsk_derive_keys_helper()
189 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_aes() argument
218 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_aes()
225 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_t psk_len, in eap_gpsk_derive_keys_sha256() argument
252 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_sha256()
[all …]
H A Deap_gpsk_common.h49 int eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor,
56 int eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor,
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_gpsk.c35 size_t psk_len; member
124 data->psk_len = password_len; in eap_gpsk_init()
136 os_memset(data->psk, 0, data->psk_len); in eap_gpsk_deinit()
364 if (eap_gpsk_derive_keys(data->psk, data->psk_len, in eap_gpsk_send_gpsk_2()
378 if (eap_gpsk_derive_session_id(data->psk, data->psk_len, in eap_gpsk_send_gpsk_2()
/freebsd/contrib/wpa/src/ap/
H A Dwpa_auth_glue.c346 const u8 *prev_psk, size_t *psk_len, in hostapd_wpa_auth_get_psk() argument
355 if (psk_len) in hostapd_wpa_auth_get_psk()
356 *psk_len = PMK_LEN; in hostapd_wpa_auth_get_psk()
362 if (psk_len) in hostapd_wpa_auth_get_psk()
363 *psk_len = sta->sae->pmk_len; in hostapd_wpa_auth_get_psk()
376 if (psk_len) in hostapd_wpa_auth_get_psk()
377 *psk_len = sta->owe_pmk_len; in hostapd_wpa_auth_get_psk()
385 if (psk_len) in hostapd_wpa_auth_get_psk()
386 *psk_len = sa->pmk_len; in hostapd_wpa_auth_get_psk()
H A Dwps_hostapd.c97 size_t psk_len) in hostapd_wps_new_psk_cb() argument
113 wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len); in hostapd_wps_new_psk_cb()
115 if (psk_len != PMK_LEN) { in hostapd_wps_new_psk_cb()
117 (unsigned long) psk_len); in hostapd_wps_new_psk_cb()
132 psk, psk_len); in hostapd_wps_new_psk_cb()
150 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); in hostapd_wps_new_psk_cb()
H A Dwpa_auth.c266 const u8 *prev_psk, size_t *psk_len, in wpa_auth_get_psk() argument
272 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk()
2667 size_t psk_len; local
2671 &psk_len, NULL);
2673 os_memcpy(sm->PMK, psk, psk_len);
2674 sm->pmk_len = psk_len;
2679 (psk_len == SHA512_MAC_LEN || psk_len == SHA384_MAC_LEN ||
2680 psk_len == SHA256_MAC_LEN))
2681 sm->xxkey_len = psk_len;
H A Dhostapd.h304 size_t psk_len);
H A Dwpa_auth.h344 const u8 *prev_psk, size_t *psk_len,
H A Dbeacon.c2389 params->psk_len = PMK_LEN; in ieee802_11_build_ap_params()
2395 params->psk_len = PMK_LEN; in ieee802_11_build_ap_params()
H A Dwpa_auth_ft.c2765 size_t psk_len; in wpa_sm_write_assoc_resp_ies() local
2769 NULL, &psk_len, NULL)) in wpa_sm_write_assoc_resp_ies()
2770 key_len = psk_len; in wpa_sm_write_assoc_resp_ies()
/freebsd/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c79 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
85 if (psk_len) in auth_get_psk()
86 *psk_len = PMK_LEN; in auth_get_psk()
H A Dibss_rsn.c278 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
282 if (psk_len) in auth_get_psk()
283 *psk_len = PMK_LEN; in auth_get_psk()
H A Dp2p_supplicant.h165 const u8 *psk, size_t psk_len);
H A Dap.c885 const u8 *psk, size_t psk_len) in ap_new_psk_cb() argument
891 wpas_p2p_new_psk_cb(wpa_s, mac_addr, p2p_dev_addr, psk, psk_len); in ap_new_psk_cb()
H A Dwps_supplicant.c1455 size_t psk_len) in wpas_wps_new_psk_cb() argument
1467 wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len); in wpas_wps_new_psk_cb()
H A Dp2p_supplicant.c8825 const u8 *psk, size_t psk_len) in wpas_p2p_new_psk_cb() argument
8831 if (psk_len != sizeof(p->psk)) in wpas_p2p_new_psk_cb()
8861 os_memcpy(p->psk, psk, psk_len); in wpas_p2p_new_psk_cb()
8887 os_memcpy(p->psk, psk, psk_len); in wpas_p2p_new_psk_cb()
/freebsd/contrib/wpa/src/wps/
H A Dwps_i.h220 const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len);
H A Dwps.h274 const u8 *psk, size_t psk_len);
H A Dwps_registrar.c149 const u8 *psk, size_t psk_len);
1230 const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len) in wps_cb_new_psk() argument
1236 psk_len); in wps_cb_new_psk()
/freebsd/crypto/openssl/test/
H A Dssl_old_test.c2974 unsigned int psk_len = 0; in psk_client_callback() local
2985 psk_len = ret; in psk_client_callback()
2987 return psk_len; in psk_client_callback()
2994 unsigned int psk_len = 0; in psk_server_callback() local
3000 psk_len = psk_key2bn(psk_key, psk, max_psk_len); in psk_server_callback()
3001 return psk_len; in psk_server_callback()
/freebsd/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_handlers_p2p.c2526 u8 psk_len = 0; in wpas_dbus_getter_p2p_group_psk() local
2534 psk_len = sizeof(ssid->psk); in wpas_dbus_getter_p2p_group_psk()
2538 p_psk, psk_len, error); in wpas_dbus_getter_p2p_group_psk()
/freebsd/contrib/wpa/src/drivers/
H A Ddriver.h1845 size_t psk_len; member
H A Ddriver_nl80211.c5194 params->psk_len && in wpa_driver_nl80211_set_ap()
5195 nla_put(msg, NL80211_ATTR_PMK, params->psk_len, params->psk)) in wpa_driver_nl80211_set_ap()