pub struct SaeAuth { /* private fields */ }Expand description
WPA3-SAE authentication handler (stub)
Full implementation requires elliptic curve operations (hunting-and-pecking for password element, Diffie-Hellman exchange). This stub provides the state machine and message framing.
Implementations§
Source§impl SaeAuth
impl SaeAuth
Sourcepub fn generate_commit(
&mut self,
_password: &[u8],
_own_addr: &MacAddress,
) -> Vec<u8>
pub fn generate_commit( &mut self, _password: &[u8], _own_addr: &MacAddress, ) -> Vec<u8>
Generate SAE commit message.
Stub: returns placeholder commit frame. Full implementation requires hunting-and-pecking to derive password element on NIST P-256, then scalar/element generation via Diffie-Hellman.
Sourcepub fn process_commit(&mut self, data: &[u8]) -> bool
pub fn process_commit(&mut self, data: &[u8]) -> bool
Process received SAE commit message.
Stub: validates message length and transitions state.
Sourcepub fn generate_confirm(&mut self) -> Vec<u8>
pub fn generate_confirm(&mut self) -> Vec<u8>
Generate SAE confirm message.
Stub: returns placeholder confirm frame.
Sourcepub fn process_confirm(&mut self, data: &[u8]) -> bool
pub fn process_confirm(&mut self, data: &[u8]) -> bool
Process received SAE confirm message.
Stub: validates message length and completes authentication.