pub struct RsnEapolKeyHandshakeMetadata { /* private fields */ }Expand description
Passive RSN EAPOL-Key handshake classification metadata.
The message value is a shape classification for an isolated EAPOL-Key descriptor. It does not infer authenticator/supplicant roles, validate MICs, derive keys, decrypt key data, or store handshake state.
Implementations§
Source§impl RsnEapolKeyHandshakeMetadata
impl RsnEapolKeyHandshakeMetadata
Sourcepub const fn message(&self) -> RsnEapolKeyHandshakeMessage
pub const fn message(&self) -> RsnEapolKeyHandshakeMessage
Candidate four-way handshake message shape.
Sourcepub const fn descriptor_type(&self) -> EapolDescriptorType
pub const fn descriptor_type(&self) -> EapolDescriptorType
Typed EAPOL-Key descriptor type.
Sourcepub const fn is_rsn_descriptor(&self) -> bool
pub const fn is_rsn_descriptor(&self) -> bool
Return true when this metadata came from an RSN EAPOL-Key descriptor.
Sourcepub const fn key_information(&self) -> EapolKeyInformation
pub const fn key_information(&self) -> EapolKeyInformation
Key Information field used for classification.
Sourcepub const fn declared_key_data_length(&self) -> Option<u16>
pub const fn declared_key_data_length(&self) -> Option<u16>
Decoded or explicitly configured Key Data Length field.
Sourcepub const fn reported_key_data_length(&self) -> usize
pub const fn reported_key_data_length(&self) -> usize
Key Data Length when present, otherwise the current key-data byte count.
Sourcepub const fn key_data_bytes_len(&self) -> usize
pub const fn key_data_bytes_len(&self) -> usize
Number of key-data bytes currently stored on the layer.
Sourcepub const fn has_key_data(&self) -> bool
pub const fn has_key_data(&self) -> bool
Return true when either the reported length or stored key-data bytes are nonzero.
Sourcepub const fn has_nonzero_nonce(&self) -> bool
pub const fn has_nonzero_nonce(&self) -> bool
Return true when the fixed nonce field contains any nonzero octet.
Sourcepub const fn has_nonzero_mic(&self) -> bool
pub const fn has_nonzero_mic(&self) -> bool
Return true when the fixed MIC field contains any nonzero octet.
Trait Implementations§
Source§impl Clone for RsnEapolKeyHandshakeMetadata
impl Clone for RsnEapolKeyHandshakeMetadata
Source§fn clone(&self) -> RsnEapolKeyHandshakeMetadata
fn clone(&self) -> RsnEapolKeyHandshakeMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RsnEapolKeyHandshakeMetadata
Source§impl Debug for RsnEapolKeyHandshakeMetadata
impl Debug for RsnEapolKeyHandshakeMetadata
impl Eq for RsnEapolKeyHandshakeMetadata
Source§impl Hash for RsnEapolKeyHandshakeMetadata
impl Hash for RsnEapolKeyHandshakeMetadata
Source§impl PartialEq for RsnEapolKeyHandshakeMetadata
impl PartialEq for RsnEapolKeyHandshakeMetadata
Source§fn eq(&self, other: &RsnEapolKeyHandshakeMetadata) -> bool
fn eq(&self, other: &RsnEapolKeyHandshakeMetadata) -> bool
self and other values to be equal, and is used by ==.