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))