Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:pmk_len

861  * @pmk_len: Length of PMK
879 static void wpa_pmk_to_ptk(const u8 *pmk, size_t pmk_len,
903 sha1_prf(pmk, pmk_len, label, data, sizeof(data), ptk, ptk_len);
905 wpa_hexdump_key(MSG_DEBUG, "WPA: PMK", pmk, pmk_len);
1371 sm->pmk, sm->pmk_len);
1374 int res, pmk_len;
1375 pmk_len = PMK_LEN;
1376 res = eapol_sm_get_key(sm->eapol, sm->pmk, PMK_LEN);
1383 pmk_len = 16;
1387 "machines", sm->pmk, pmk_len);
1388 sm->pmk_len = pmk_len;
1389 pmksa_cache_add(sm->pmksa, sm->pmk, pmk_len, src_addr,
1537 wpa_pmk_to_ptk(sm->pmk, sm->pmk_len, "Pairwise key expansion",
2388 hmac_sha1_vector(smk, PMK_LEN, 5, addr, len, hash);
2530 kde.smk == NULL || kde.smk_len < PMK_LEN + WPA_NONCE_LEN ||
2570 if (os_memcmp(kde.smk + PMK_LEN, peerkey->inonce,
2602 if (os_memcmp(kde.smk + PMK_LEN, peerkey->pnonce,
2617 os_memcpy(peerkey->smk, kde.smk, PMK_LEN);
2619 wpa_hexdump_key(MSG_DEBUG, "RSN: SMK", peerkey->smk, PMK_LEN);
2747 wpa_pmk_to_ptk(peerkey->smk, PMK_LEN, "Peer key expansion",
3221 wpa_pmk_to_ptk(peerkey->smk, PMK_LEN, "Peer key expansion",
3783 (sm->pmk_len == entry->pmk_len &&
3784 os_memcmp(sm->pmk, entry->pmk, sm->pmk_len) == 0)) {
3906 * @pmk_len: The length of the new PMK in bytes
3910 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len)
3915 sm->pmk_len = pmk_len;
3916 os_memcpy(sm->pmk, pmk, pmk_len);
3933 sm->pmk_len = sm->cur_pmksa->pmk_len;
3934 os_memcpy(sm->pmk, sm->cur_pmksa->pmk, sm->pmk_len);
3936 sm->pmk_len = PMK_LEN;
3937 os_memset(sm->pmk, 0, PMK_LEN);