Home
last modified time | relevance | path

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

/netbsd/external/bsd/wpa/dist/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()
218 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_aes()
252 psk, psk_len, seed, seed_len, in eap_gpsk_derive_keys_sha256()
296 wpa_hexdump_key(MSG_DEBUG, "EAP-GPSK: PSK", psk, psk_len); in eap_gpsk_derive_keys()
325 ret = eap_gpsk_derive_keys_sha256(psk, psk_len, seed, in eap_gpsk_derive_keys()
[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,
/netbsd/external/bsd/wpa/dist/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()
/netbsd/external/bsd/wpa/dist/src/ap/
H A Dwpa_auth_glue.c253 const u8 *prev_psk, size_t *psk_len, in hostapd_wpa_auth_get_psk() argument
262 if (psk_len) in hostapd_wpa_auth_get_psk()
263 *psk_len = PMK_LEN; in hostapd_wpa_auth_get_psk()
281 if (psk_len) in hostapd_wpa_auth_get_psk()
282 *psk_len = sta->owe_pmk_len; in hostapd_wpa_auth_get_psk()
290 if (psk_len) in hostapd_wpa_auth_get_psk()
291 *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()
131 psk, psk_len); in hostapd_wps_new_psk_cb()
148 wpa_snprintf_hex(hex, sizeof(hex), psk, psk_len); in hostapd_wps_new_psk_cb()
H A Dhostapd.h274 size_t psk_len);
H A Dwpa_auth.h257 const u8 *prev_psk, size_t *psk_len,
H A Dwpa_auth.c117 const u8 *prev_psk, size_t *psk_len, in wpa_auth_get_psk() argument
123 prev_psk, psk_len, vlan_id); in wpa_auth_get_psk()
2070 size_t psk_len; in SM_STATE() local
2074 &psk_len, NULL); in SM_STATE()
2076 os_memcpy(sm->PMK, psk, psk_len); in SM_STATE()
2077 sm->pmk_len = psk_len; in SM_STATE()
/netbsd/external/bsd/wpa/dist/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.c263 size_t *psk_len, int *vlan_id) in auth_get_psk() argument
267 if (psk_len) in auth_get_psk()
268 *psk_len = PMK_LEN; in auth_get_psk()
H A Dp2p_supplicant.h154 const u8 *psk, size_t psk_len);
H A Dap.c638 const u8 *psk, size_t psk_len) in ap_new_psk_cb() argument
644 wpas_p2p_new_psk_cb(wpa_s, mac_addr, p2p_dev_addr, psk, psk_len); in ap_new_psk_cb()
H A Dwps_supplicant.c1413 size_t psk_len) in wpas_wps_new_psk_cb() argument
1425 wpa_hexdump_key(MSG_DEBUG, "Per-device PSK", psk, psk_len); in wpas_wps_new_psk_cb()
H A Dp2p_supplicant.c8185 const u8 *psk, size_t psk_len) in wpas_p2p_new_psk_cb() argument
8191 if (psk_len != sizeof(p->psk)) in wpas_p2p_new_psk_cb()
8221 os_memcpy(p->psk, psk, psk_len); in wpas_p2p_new_psk_cb()
8247 os_memcpy(p->psk, psk, psk_len); in wpas_p2p_new_psk_cb()
/netbsd/crypto/external/bsd/openssl.old/dist/test/
H A Dssltest_old.c3157 unsigned int psk_len = 0; in psk_client_callback() local
3168 psk_len = ret; in psk_client_callback()
3170 return psk_len; in psk_client_callback()
3177 unsigned int psk_len = 0; in psk_server_callback() local
3183 psk_len = psk_key2bn(psk_key, psk, max_psk_len); in psk_server_callback()
3184 return psk_len; in psk_server_callback()
/netbsd/crypto/external/bsd/openssl/dist/test/
H A Dssl_old_test.c2970 unsigned int psk_len = 0; in psk_client_callback() local
2981 psk_len = ret; in psk_client_callback()
2983 return psk_len; in psk_client_callback()
2990 unsigned int psk_len = 0; in psk_server_callback() local
2996 psk_len = psk_key2bn(psk_key, psk, max_psk_len); in psk_server_callback()
2997 return psk_len; in psk_server_callback()
/netbsd/external/bsd/wpa/dist/src/wps/
H A Dwps_i.h219 const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len);
H A Dwps.h268 const u8 *psk, size_t psk_len);
H A Dwps_registrar.c148 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()
/netbsd/external/bsd/wpa/dist/wpa_supplicant/dbus/
H A Ddbus_new_handlers_p2p.c2405 u8 psk_len = 0; in wpas_dbus_getter_p2p_group_psk() local
2413 psk_len = sizeof(ssid->psk); in wpas_dbus_getter_p2p_group_psk()
2417 p_psk, psk_len, error); in wpas_dbus_getter_p2p_group_psk()
/netbsd/sys/net/
H A Dif_wg.c4152 size_t psk_len; in wg_handle_prop_peer() local
4181 if (prop_dictionary_get_data(peer, "preshared_key", &psk, &psk_len)) { in wg_handle_prop_peer()
4182 if (psk_len != sizeof(wgp->wgp_psk)) { in wg_handle_prop_peer()