⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

derive_ptk

Function derive_ptk 

Source
pub fn derive_ptk(
    pmk: &[u8; 32],
    aa: &MacAddress,
    spa: &MacAddress,
    anonce: &[u8; 32],
    snonce: &[u8; 32],
) -> TemporalKey
Expand 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