wpa_pmk_to_ptk() function
wpa_pmk_to_ptk - Calculate PTK from PMK, addresses, and nonces @pmk: Pairwise master key @pmk_len: Length of PMK @label: Label to use in derivation @addr1: AA or SA @addr2: SA or AA @nonce1: ANonce or SNonce @nonce2: SNonce or ANonce @ptk: Buffer for pairwise transient key @akmp: Negotiated AKM @cipher: Negotiated pairwise cipher Returns: 0 on success, -1 on failure IEEE Std 802.11i-2004 - 8.5.1.2 Pairwise key hierarchy PTK = PRF-X(PMK, "Pairwise key expansion", Min(AA, SA) || Max(AA, SA) || Min(ANonce, SNonce) || Max(ANonce, SNonce))
![]()
return wpa_pmk_to_ptk(pmk, PMK_LEN, "Pairwise key expansion",
wpa_pmk_to_ptk() is called by 2 functions and calls 7 functions:
![]()
wpa_pmk_to_ptk()
wpa_pmk_to_ptk() reads 6 variables and writes 3 variables:
![]()
wpa_pmk_to_ptk()