pub fn derive_ptk(
pmk: &[u8; 32],
aa: &MacAddress,
spa: &MacAddress,
anonce: &[u8; 32],
snonce: &[u8; 32],
) -> TemporalKeyExpand description
Derive PTK (Pairwise Transient Key) from PMK, nonces, and addresses.
PTK = PRF-SHA256(PMK, “Pairwise key expansion”, Min(AA,SPA) || Max(AA,SPA) || Min(ANonce,SNonce) || Max(ANonce,SNonce))
PTK is split into: KCK (16) + KEK (16) + TK (16) = 48 bytes