| /src/external/bsd/wpa/dist/src/ap/ |
| pmksa_cache_auth.h | 20 u8 pmk[PMK_LEN_MAX]; member in struct:rsn_pmksa_cache_entry 56 const u8 *pmk, size_t pmk_len, const u8 *pmkid, 61 pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid,
|
| pmksa_cache_auth.c | 264 * @pmk: The new pairwise master key 265 * @pmk_len: PMK length in bytes, usually PMK_LEN (32) 276 * This function create a PMKSA entry for a new PMK and adds it to the PMKSA 279 * based on the PMK. 283 const u8 *pmk, size_t pmk_len, const u8 *pmkid, 290 entry = pmksa_cache_auth_create_entry(pmk, pmk_len, pmkid, kck, kck_len, 303 * @pmk: The new pairwise master key 304 * @pmk_len: PMK length in bytes, usually PMK_LEN (32) 318 pmksa_cache_auth_create_entry(const u8 *pmk, size_t pmk_len, const u8 *pmkid, 335 os_memcpy(entry->pmk, pmk, pmk_len) [all...] |
| wpa_auth.h | 208 u32 r0_key_lifetime; /* PMK-R0 lifetime seconds */ 277 * If set Key Derivation Key should be derived as part of PMK to 475 int wpa_auth_pmksa_add(struct wpa_state_machine *sm, const u8 *pmk, 479 const u8 *pmk, size_t len, const u8 *sta_addr, 483 const u8 *pmk, size_t pmk_len, const u8 *pmkid, 487 const u8 *pmk, size_t pmk_len, const u8 *pmkid, 497 wpa_auth_pmksa_create_entry(const u8 *aa, const u8 *spa, const u8 *pmk, 513 u8 *pmkid, u8 *pmk, size_t *pmk_len); 568 int fils_auth_pmk_to_ptk(struct wpa_state_machine *sm, const u8 *pmk, 597 void wpa_auth_add_fils_pmk_pmkid(struct wpa_state_machine *sm, const u8 *pmk, [all...] |
| wpa_auth.c | 62 const u8 *pmk, unsigned int pmk_len, 783 wpa_printf(MSG_ERROR, "FT PMK cache initialization failed."); 1297 const u8 *pmk = NULL; local 1309 pmk = wpa_auth_get_psk(sm->wpa_auth, sm->addr, 1310 sm->p2p_dev_addr, pmk, &pmk_len, 1312 if (!pmk) 1316 os_memcpy(sm->xxkey, pmk, pmk_len); 1321 pmk = sm->PMK; 1325 if (wpa_derive_ptk(sm, sm->alt_SNonce, pmk, pmk_len, &PTK, 0 3631 const u8 *pmk = NULL; local [all...] |
| ctrl_iface_ap.c | 1173 u8 pmk[PMK_LEN_MAX]; local 1180 * <STA addr> <PMKID> <PMK> <expiration in seconds> <akmp> 1204 hexstr2bin(pos, pmk, pmk_len) < 0) 1212 return wpa_auth_pmksa_add2(hapd->wpa_auth, spa, pmk, pmk_len, 1231 u8 pmk[PMK_LEN_MAX]; local 1237 * <BSSID> <PMKID> <PMK> <expiration in seconds> 1256 if (hexstr2bin(pos, pmk, PMK_LEN) < 0) 1267 return wpa_auth_pmksa_create_entry(aa, spa, pmk, PMK_LEN,
|
| sta_info.c | 1445 const u8 *pmk; local 1450 pmk = wpa_auth_get_pmk(sta->wpa_sm, &pmk_len); 1451 if (!pmk || pmk_len != PMK_LEN) 1455 if (os_memcmp(pmk, psk->psk, PMK_LEN) == 0)
|
| /src/external/bsd/wpa/dist/src/rsn_supp/ |
| pmksa_cache.h | 18 u8 pmk[PMK_LEN_MAX]; member in struct:rsn_pmksa_cache_entry 84 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 101 const u8 *pmk, size_t pmk_len, bool external_only);
|
| pmksa_cache.c | 214 * @pmk: The new pairwise master key 215 * @pmk_len: PMK length in bytes, usually PMK_LEN (32) 221 * @network_ctx: Network configuration context for this PMK 226 * This function create a PMKSA entry for a new PMK and adds it to the PMKSA 229 * based on the PMK and the driver interface is notified of the new PMKID. 232 pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len, 254 os_memcpy(entry->pmk, pmk, pmk_len); 266 rsn_pmkid(pmk, pmk_len, aa, spa, entry->pmkid, akmp); 303 os_memcmp_const(pos->pmk, entry->pmk [all...] |
| preauth.c | 89 u8 pmk[PMK_LEN]; local 94 res = eapol_sm_get_key(eapol, pmk, PMK_LEN); 98 * uses only 16-byte PMK. 100 res = eapol_sm_get_key(eapol, pmk, 16); 104 wpa_hexdump_key(MSG_DEBUG, "RSN: PMK from pre-auth", 105 pmk, pmk_len); 107 pmksa_cache_add(sm->pmksa, pmk, pmk_len, NULL, 355 NULL, p->pmk, p->pmk_len, 0, 0,
|
| wpa.h | 47 const u8 *pmk, size_t pmk_len, u32 pmk_lifetime, 93 int (*key_mgmt_set_pmk)(void *ctx, const u8 *pmk, size_t pmk_len); 187 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 234 void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, 284 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk,
|
| wpa_i.h | 26 u8 pmk[PMK_LEN_MAX]; member in struct:wpa_sm 83 * If set Key Derivation Key should be derived as part of PMK to 169 * Currently, the WPA state machine stores the PMK-R1, PMK-R1-Name and 170 * R1KH-ID only for the current association. As PMK-R1 is required to 172 * associations, which would later be used to derive the PMK-R1 as part 312 const u8 *cache_id, const u8 *pmk, 318 cache_id, pmk, pmk_len, pmk_lifetime, 463 const u8 *pmk, size_t pmk_len) 467 return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len) [all...] |
| wpa.c | 302 if (wpa_sm_key_mgmt_set_pmk(sm, sm->pmk, sm->pmk_len)) 304 "RSN: Cannot set PMK for key management offload"); 339 wpa_hexdump_key(MSG_DEBUG, "RSN: PMK from PMKSA cache", 340 sm->pmk, sm->pmk_len); 349 * PMK from SAE being used as the XXKey in cases where 353 os_memcpy(sm->xxkey, sm->pmk, sm->pmk_len); 368 res = eapol_sm_get_key(sm->eapol, sm->pmk, pmk_len); 373 * methods: it uses only 16-byte PMK. 375 res = eapol_sm_get_key(sm->eapol, sm->pmk, 16); 423 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK from EAPOL state [all...] |
| /src/external/bsd/wpa/dist/src/pasn/ |
| pasn_responder.c | 103 /* Process the commit message and derive the PMK */ 163 wpa_hexdump_key(MSG_DEBUG, "RSN: Cache PMK from SAE", 164 pasn->sae.pmk, pasn->sae.pmk_len); 168 pmksa_cache_auth_add(pasn->pmksa, pasn->sae.pmk, pasn->sae.pmk_len, 308 u8 pmk[PMK_LEN_MAX]; local 312 os_memset(pmk, 0, sizeof(pmk)); 319 wpa_printf(MSG_DEBUG, "PASN: Using default PMK"); 322 os_memcpy(pmk, pasn_default_pmk, sizeof(pasn_default_pmk)); 327 os_memcpy(pmk, cached_pmk, cached_pmk_len) [all...] |
| pasn_initiator.c | 125 /* Process the commit message and derive the PMK */ 424 pasn->pmk, &pasn->pmk_len); 429 wpa_printf(MSG_DEBUG, "PASN: FILS: Failed to derive PMK"); 438 pasn->pmksa_entry = pmksa_cache_add(pasn->pmksa, pasn->pmk, 712 forced_memzero(pasn->pmk, sizeof(pasn->pmk)); 767 os_memset(pasn->pmk, 0, sizeof(pasn->pmk)); 771 wpa_printf(MSG_DEBUG, "PASN: Using default PMK"); 774 os_memcpy(pasn->pmk, pasn_default_pmk [all...] |
| pasn_common.c | 223 return pasn->pmk;
|
| pasn_common.h | 77 u8 pmk[PMK_LEN_MAX]; member in struct:pasn_data
|
| /src/external/bsd/wpa/dist/src/common/ |
| common_module_tests.c | 313 const u8 pmk[] = { local 440 if (os_memcmp(pmk, sae.pmk, SAE_PMK_LEN) != 0) { 441 wpa_printf(MSG_ERROR, "SAE: Mismatch in PMK"); 612 const u8 pmk[] = { local 650 ret = pasn_pmk_to_ptk(pmk, sizeof(pmk), 684 const u8 pmk[] = { local 729 ret = wpa_pmk_to_ptk(pmk, sizeof(pmk), [all...] |
| wpa_common.c | 370 * wpa_pmk_to_ptk - Calculate PTK from PMK, addresses, and nonces 371 * @pmk: Pairwise master key 372 * @pmk_len: Length of PMK 385 * PTK = PRF-X(PMK, "Pairwise key expansion", 393 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 415 wpa_printf(MSG_ERROR, "WPA: No PMK set for PTK derivation"); 467 if (sha384_prf(pmk, pmk_len, label, data, data_len, 475 if (sha256_prf(pmk, pmk_len, label, data, data_len, 482 if (sha256_prf(pmk, pmk_len, label, data, data_len, 487 if (sha384_prf(pmk, pmk_len, label, data, data_len [all...] |
| wpa_common.h | 465 int wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const char *label, 472 size_t dh_ss_len, u8 *pmk, size_t *pmk_len); 475 int fils_pmk_to_ptk(const u8 *pmk, size_t pmk_len, const u8 *spa, const u8 *aa, 536 void rsn_pmkid(const u8 *pmk, size_t pmk_len, const u8 *aa, const u8 *spa, 752 int pasn_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
|
| dpp_i.h | 116 int dpp_derive_pmk(const u8 *Nx, size_t Nx_len, u8 *pmk, unsigned int hash_len);
|
| sae.h | 110 u8 pmk[SAE_PMK_LEN_MAX]; member in struct:sae_data
|
| /src/external/bsd/wpa/dist/wpa_supplicant/ |
| wpas_glue.c | 289 u8 pmk[PMK_LEN_MAX]; local 326 wpa_printf(MSG_DEBUG, "Configure PMK for driver-based RSN 4-way " 337 wpa_printf(MSG_DEBUG, "RSN: Use FT XXKey as PMK for " 341 os_memcpy(pmk, buf + PMK_LEN, PMK_LEN); 348 res = eapol_sm_get_key(eapol, pmk, pmk_len); 352 * uses only 16-byte PMK. 354 res = eapol_sm_get_key(eapol, pmk, 16); 360 wpa_printf(MSG_DEBUG, "Failed to get PMK from EAPOL state " 365 wpa_hexdump_key(MSG_DEBUG, "RSN: Configure PMK for driver-based 4-way " 366 "handshake", pmk, pmk_len) [all...] |
| eapol_test.c | 367 u8 pmk[PMK_LEN]; local 372 if (eapol_sm_get_key(e->wpa_s->eapol, pmk, PMK_LEN) == 0) { 373 wpa_hexdump(MSG_DEBUG, "PMK from EAPOL", pmk, PMK_LEN); 374 if (os_memcmp(pmk, e->authenticator_pmk, PMK_LEN) != 0) { 375 printf("WARNING: PMK mismatch\n"); 376 wpa_hexdump(MSG_DEBUG, "PMK from AS", 381 eapol_sm_get_key(e->wpa_s->eapol, pmk, 16) == 0) { 382 wpa_hexdump(MSG_DEBUG, "LEAP PMK from EAPOL", pmk, 16) [all...] |
| mesh_rsn.c | 95 return sta->sae->pmk; 407 sta->sae->pmkid, sta->sae->pmk, 449 * AEK = KDF-Hash-256(PMK, "AEK Derivation", Selected AKM Suite || 467 sha256_prf(sta->sae->pmk, sizeof(sta->sae->pmk), "AEK Derivation", 472 /* derive mesh temporal key from pmk */ 482 * MTK = KDF-Hash-Length(PMK, "Temporal Key Derivation", min(localNonce, 528 sha256_prf(sta->sae->pmk, SAE_PMK_LEN, 678 "Mesh RSN: Invalid PMKID (Chosen PMK did not match calculated PMKID)");
|
| preauth_test.c | 157 const u8 *pmk, size_t pmk_len,
|