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

SaeAuth

Struct SaeAuth 

Source
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

Source

pub fn new() -> Self

Create a new SAE authentication instance

Source

pub fn state(&self) -> SaeState

Get current SAE state

Source

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.

Source

pub fn process_commit(&mut self, data: &[u8]) -> bool

Process received SAE commit message.

Stub: validates message length and transitions state.

Source

pub fn generate_confirm(&mut self) -> Vec<u8>

Generate SAE confirm message.

Stub: returns placeholder confirm frame.

Source

pub fn process_confirm(&mut self, data: &[u8]) -> bool

Process received SAE confirm message.

Stub: validates message length and completes authentication.

Trait Implementations§

Source§

impl Default for SaeAuth

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for SaeAuth

§

impl RefUnwindSafe for SaeAuth

§

impl Send for SaeAuth

§

impl Sync for SaeAuth

§

impl Unpin for SaeAuth

§

impl UnwindSafe for SaeAuth

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.