Lines Matching refs:ptk
72 * wpa_pmk_to_ptk - Calculate PTK from PMK, addresses, and nonces
80 * @ptk: Buffer for pairwise transient key
81 * @ptk_len: Length of PTK
85 * PTK = PRF-X(PMK, "Pairwise key expansion",
96 u8 *ptk, size_t ptk_len, int use_sha256)
121 ptk, ptk_len);
124 sha1_prf(pmk, pmk_len, label, data, sizeof(data), ptk,
127 wpa_printf(MSG_DEBUG, "WPA: PTK derivation - A1=" MACSTR " A2=" MACSTR,
132 wpa_hexdump_key(MSG_DEBUG, "WPA: PTK", ptk, ptk_len);
659 * wpa_pmk_r1_to_ptk - Derive PTK and PTKName from PMK-R1
666 u8 *ptk, size_t ptk_len, u8 *ptk_name)
674 * PTK = KDF-PTKLen(PMK-R1, "FT-PTK", SNonce || ANonce ||
687 sha256_prf(pmk_r1, PMK_LEN, "FT-PTK", buf, pos - buf, ptk, ptk_len);