/netbsd/external/bsd/wpa/dist/src/eap_common/ |
H A D | eap_gpsk_common.c | 110 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 D | eap_gpsk_common.h | 49 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 D | eap_gpsk.c | 35 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 D | wpa_auth_glue.c | 253 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 D | wps_hostapd.c | 97 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 D | hostapd.h | 274 size_t psk_len);
|
H A D | wpa_auth.h | 257 const u8 *prev_psk, size_t *psk_len,
|
H A D | wpa_auth.c | 117 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 D | mesh_rsn.c | 79 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 D | ibss_rsn.c | 263 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 D | p2p_supplicant.h | 154 const u8 *psk, size_t psk_len);
|
H A D | ap.c | 638 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 D | wps_supplicant.c | 1413 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 D | p2p_supplicant.c | 8185 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 D | ssltest_old.c | 3157 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 D | ssl_old_test.c | 2970 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 D | wps_i.h | 219 const u8 *p2p_dev_addr, const u8 *psk, size_t psk_len);
|
H A D | wps.h | 268 const u8 *psk, size_t psk_len);
|
H A D | wps_registrar.c | 148 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 D | dbus_new_handlers_p2p.c | 2405 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 D | if_wg.c | 4152 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()
|