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

Module wpa

Module wpa 

Source
Expand description

WPA2/WPA3 Authentication Implementation

Provides EAPOL frame handling, PBKDF2-SHA256 key derivation, PRF-SHA256 for PTK expansion, 4-way handshake state machine, CCMP stub, and WPA3-SAE stubs for WiFi security.

Structs§

CcmpEncrypt
CCMP encryption parameters
EapolFrame
EAPOL (IEEE 802.1X) frame header
EapolKeyFrame
EAPOL-Key frame body (within EAPOL frame)
FourWayHandshake
WPA2 4-way handshake state machine (supplicant side)
KeyInfo
Key information flags (16-bit field in EAPOL-Key frame)
SaeAuth
WPA3-SAE authentication handler (stub)
TemporalKey
Temporal key material derived from the 4-way handshake

Enums§

SaeState
SAE (Simultaneous Authentication of Equals) state for WPA3
WpaState
WPA handshake state

Constants§

EAPOL_KEY
EAPOL packet type: Key (used in 4-way handshake)

Functions§

derive_pmk
Derive PMK (Pairwise Master Key) from passphrase and SSID.
derive_ptk
Derive PTK (Pairwise Transient Key) from PMK, nonces, and addresses.
pbkdf2_sha256
PBKDF2-SHA256 key derivation (RFC 8018)
prf_sha256
PRF-SHA256: Pseudo-Random Function for key expansion (IEEE 802.11-2012)