Searched refs:psk (Results 1 - 25 of 101) sorted by relevance

12345

/external/wpa_supplicant_8/wpa_supplicant/examples/
H A Dwpa-psk-tkip.conf6 ssid="example wpa-psk network"
11 psk="secret passphrase"
/external/wpa_supplicant_8/hostapd/src/ap/
H A Dieee802_11_auth.h22 struct hostapd_sta_wpa_psk_short **psk,
26 void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk);
H A Dap_config.c202 struct hostapd_wpa_psk *psk; local
236 psk = os_zalloc(sizeof(*psk));
237 if (psk == NULL) {
243 psk->group = 1;
245 os_memcpy(psk->addr, addr, ETH_ALEN);
251 os_free(psk);
259 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0)
263 4096, psk
402 struct hostapd_wpa_psk *psk, *prev; local
631 struct hostapd_wpa_psk *psk; local
[all...]
H A Dieee802_11_auth.c39 struct hostapd_sta_wpa_psk_short *psk; member in struct:hostapd_cached_radius_acl
60 hostapd_free_psk_list(e->psk);
77 static void copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, argument
84 copy_to = psk;
103 struct hostapd_sta_wpa_psk_short **psk,
125 copy_psk_list(psk, entry->psk);
223 * @psk: Linked list buffer for returning WPA PSK
234 struct hostapd_sta_wpa_psk_short **psk,
243 if (psk)
100 hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
231 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
426 struct hostapd_sta_wpa_psk_short *psk; local
636 hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk) argument
[all...]
/external/wpa_supplicant_8/src/ap/
H A Dieee802_11_auth.h22 struct hostapd_sta_wpa_psk_short **psk,
26 void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk);
H A Dap_config.c202 struct hostapd_wpa_psk *psk; local
236 psk = os_zalloc(sizeof(*psk));
237 if (psk == NULL) {
243 psk->group = 1;
245 os_memcpy(psk->addr, addr, ETH_ALEN);
251 os_free(psk);
259 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0)
263 4096, psk
402 struct hostapd_wpa_psk *psk, *prev; local
631 struct hostapd_wpa_psk *psk; local
[all...]
H A Dieee802_11_auth.c39 struct hostapd_sta_wpa_psk_short *psk; member in struct:hostapd_cached_radius_acl
60 hostapd_free_psk_list(e->psk);
77 static void copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, argument
84 copy_to = psk;
103 struct hostapd_sta_wpa_psk_short **psk,
125 copy_psk_list(psk, entry->psk);
223 * @psk: Linked list buffer for returning WPA PSK
234 struct hostapd_sta_wpa_psk_short **psk,
243 if (psk)
100 hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
231 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
426 struct hostapd_sta_wpa_psk_short *psk; local
636 hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/ap/
H A Dieee802_11_auth.h22 struct hostapd_sta_wpa_psk_short **psk,
26 void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk);
H A Dap_config.c202 struct hostapd_wpa_psk *psk; local
236 psk = os_zalloc(sizeof(*psk));
237 if (psk == NULL) {
243 psk->group = 1;
245 os_memcpy(psk->addr, addr, ETH_ALEN);
251 os_free(psk);
259 if (len == 64 && hexstr2bin(pos, psk->psk, PMK_LEN) == 0)
263 4096, psk
402 struct hostapd_wpa_psk *psk, *prev; local
631 struct hostapd_wpa_psk *psk; local
[all...]
H A Dieee802_11_auth.c39 struct hostapd_sta_wpa_psk_short *psk; member in struct:hostapd_cached_radius_acl
60 hostapd_free_psk_list(e->psk);
77 static void copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, argument
84 copy_to = psk;
103 struct hostapd_sta_wpa_psk_short **psk,
125 copy_psk_list(psk, entry->psk);
223 * @psk: Linked list buffer for returning WPA PSK
234 struct hostapd_sta_wpa_psk_short **psk,
243 if (psk)
100 hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
231 hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, struct hostapd_sta_wpa_psk_short **psk, char **identity, char **radius_cui) argument
426 struct hostapd_sta_wpa_psk_short *psk; local
636 hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/
H A Dwpa_passphrase.c17 unsigned char psk[32]; local
55 pbkdf2_sha1(passphrase, (u8 *) ssid, os_strlen(ssid), 4096, psk, 32); local
59 printf("\t#psk=\"%s\"\n", passphrase);
62 printf("%02x", psk[i]);
H A Dwpa_supplicant.conf511 # both), and psk must also be set.
557 # WPA-PSK = WPA pre-shared key (this requires 'psk' field)
597 # psk: WPA preshared key; 256-bit pre-shared key
919 psk="very secret passphrase"
928 psk="very secret passphrase"
939 psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
950 psk="not so secure passphrase"
1038 psk=06b4be19da289f475aa46a33cb793029d4ab3db7a23ee92382eb0106c72ac7bb
1045 psk=000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f
1061 ssid="eap-psk
[all...]
H A Dibss_rsn.h50 u8 psk[PMK_LEN]; member in struct:ibss_rsn
60 void ibss_rsn_set_psk(struct ibss_rsn *ibss_rsn, const u8 *psk);
H A Dconfig_ssid.h40 u8 psk[32]; member in struct:psk_list_entry
134 * psk - WPA pre-shared key (256 bits)
136 u8 psk[32]; member in struct:wpa_ssid
146 * If this is set, psk will be generated using the SSID and passphrase
317 * pairwise=NONE, group=TKIP (or CCMP, but not both), and psk must also
/external/wpa_supplicant_8/hostapd/src/eap_common/
H A Deap_psk_common.c19 int eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk) argument
22 if (aes_128_encrypt_block(psk, ak, ak))
27 if (aes_128_encrypt_block(psk, ak, ak) ||
28 aes_128_encrypt_block(psk, kdk, kdk))
H A Deap_gpsk_common.c38 static int eap_gpsk_gkdf_cmac(const u8 *psk /* Y */,
60 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash))
73 static int eap_gpsk_gkdf_sha256(const u8 *psk /* Y */,
95 hmac_sha256_vector(psk, 32, 2, addr, vlen, hash);
109 const u8 *psk, size_t psk_len,
146 os_memcpy(pos, psk, psk_len);
156 if (gkdf(psk, data, data_len, mk, mk_len) < 0) {
188 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, argument
217 psk, psk_len, seed, seed_len,
224 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_ argument
107 eap_gpsk_derive_keys_helper(u32 csuite_specifier, u8 *kdf_out, size_t kdf_out_len, const u8 *psk, size_t psk_len, const u8 *seed, size_t seed_len, u8 *msk, u8 *emsk, u8 *sk, size_t sk_len, u8 *pk, size_t pk_len) argument
278 eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor, int specifier, const u8 *rand_peer, const u8 *rand_server, const u8 *id_peer, size_t id_peer_len, const u8 *id_server, size_t id_server_len, u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, u8 *pk, size_t *pk_len) argument
343 eap_gpsk_derive_mid_helper(u32 csuite_specifier, u8 *kdf_out, size_t kdf_out_len, const u8 *psk, const u8 *seed, size_t seed_len, u8 method_type) argument
417 eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor, int specifier, const u8 *rand_peer, const u8 *rand_server, const u8 *id_peer, size_t id_peer_len, const u8 *id_server, size_t id_server_len, u8 method_type, u8 *sid, size_t *sid_len) argument
[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,
/external/wpa_supplicant_8/src/eap_common/
H A Deap_psk_common.c19 int eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk) argument
22 if (aes_128_encrypt_block(psk, ak, ak))
27 if (aes_128_encrypt_block(psk, ak, ak) ||
28 aes_128_encrypt_block(psk, kdk, kdk))
H A Deap_gpsk_common.c38 static int eap_gpsk_gkdf_cmac(const u8 *psk /* Y */,
60 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash))
73 static int eap_gpsk_gkdf_sha256(const u8 *psk /* Y */,
95 hmac_sha256_vector(psk, 32, 2, addr, vlen, hash);
109 const u8 *psk, size_t psk_len,
146 os_memcpy(pos, psk, psk_len);
156 if (gkdf(psk, data, data_len, mk, mk_len) < 0) {
188 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, argument
217 psk, psk_len, seed, seed_len,
224 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_ argument
107 eap_gpsk_derive_keys_helper(u32 csuite_specifier, u8 *kdf_out, size_t kdf_out_len, const u8 *psk, size_t psk_len, const u8 *seed, size_t seed_len, u8 *msk, u8 *emsk, u8 *sk, size_t sk_len, u8 *pk, size_t pk_len) argument
278 eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor, int specifier, const u8 *rand_peer, const u8 *rand_server, const u8 *id_peer, size_t id_peer_len, const u8 *id_server, size_t id_server_len, u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, u8 *pk, size_t *pk_len) argument
343 eap_gpsk_derive_mid_helper(u32 csuite_specifier, u8 *kdf_out, size_t kdf_out_len, const u8 *psk, const u8 *seed, size_t seed_len, u8 method_type) argument
417 eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor, int specifier, const u8 *rand_peer, const u8 *rand_server, const u8 *id_peer, size_t id_peer_len, const u8 *id_server, size_t id_server_len, u8 method_type, u8 *sid, size_t *sid_len) argument
[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,
/external/wpa_supplicant_8/wpa_supplicant/src/eap_common/
H A Deap_psk_common.c19 int eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk) argument
22 if (aes_128_encrypt_block(psk, ak, ak))
27 if (aes_128_encrypt_block(psk, ak, ak) ||
28 aes_128_encrypt_block(psk, kdk, kdk))
H A Deap_gpsk_common.c38 static int eap_gpsk_gkdf_cmac(const u8 *psk /* Y */,
60 if (omac1_aes_128_vector(psk, 2, addr, vlen, hash))
73 static int eap_gpsk_gkdf_sha256(const u8 *psk /* Y */,
95 hmac_sha256_vector(psk, 32, 2, addr, vlen, hash);
109 const u8 *psk, size_t psk_len,
146 os_memcpy(pos, psk, psk_len);
156 if (gkdf(psk, data, data_len, mk, mk_len) < 0) {
188 static int eap_gpsk_derive_keys_aes(const u8 *psk, size_t psk_len, argument
217 psk, psk_len, seed, seed_len,
224 static int eap_gpsk_derive_keys_sha256(const u8 *psk, size_ argument
107 eap_gpsk_derive_keys_helper(u32 csuite_specifier, u8 *kdf_out, size_t kdf_out_len, const u8 *psk, size_t psk_len, const u8 *seed, size_t seed_len, u8 *msk, u8 *emsk, u8 *sk, size_t sk_len, u8 *pk, size_t pk_len) argument
278 eap_gpsk_derive_keys(const u8 *psk, size_t psk_len, int vendor, int specifier, const u8 *rand_peer, const u8 *rand_server, const u8 *id_peer, size_t id_peer_len, const u8 *id_server, size_t id_server_len, u8 *msk, u8 *emsk, u8 *sk, size_t *sk_len, u8 *pk, size_t *pk_len) argument
343 eap_gpsk_derive_mid_helper(u32 csuite_specifier, u8 *kdf_out, size_t kdf_out_len, const u8 *psk, const u8 *seed, size_t seed_len, u8 method_type) argument
417 eap_gpsk_derive_session_id(const u8 *psk, size_t psk_len, int vendor, int specifier, const u8 *rand_peer, const u8 *rand_server, const u8 *id_peer, size_t id_peer_len, const u8 *id_server, size_t id_server_len, u8 method_type, u8 *sid, size_t *sid_len) argument
[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,
/external/wpa_supplicant_8/hostapd/src/eap_server/
H A Deap_server_psk.c58 struct eap_psk_hdr_1 *psk; local
71 sizeof(*psk) + sm->server_id_len,
80 psk = wpabuf_put(req, sizeof(*psk));
81 psk->flags = EAP_PSK_FLAGS_SET_T(0); /* T=0 */
82 os_memcpy(psk->rand_s, data->rand_s, EAP_PSK_RAND_LEN);
93 struct eap_psk_hdr_3 *psk; local
100 sizeof(*psk) + 4 + 16 + 1, EAP_CODE_REQUEST, id);
108 psk = wpabuf_put(req, sizeof(*psk));
[all...]
/external/wpa_supplicant_8/src/eap_server/
H A Deap_server_psk.c58 struct eap_psk_hdr_1 *psk; local
71 sizeof(*psk) + sm->server_id_len,
80 psk = wpabuf_put(req, sizeof(*psk));
81 psk->flags = EAP_PSK_FLAGS_SET_T(0); /* T=0 */
82 os_memcpy(psk->rand_s, data->rand_s, EAP_PSK_RAND_LEN);
93 struct eap_psk_hdr_3 *psk; local
100 sizeof(*psk) + 4 + 16 + 1, EAP_CODE_REQUEST, id);
108 psk = wpabuf_put(req, sizeof(*psk));
[all...]

Completed in 747 milliseconds

12345