pub struct NegotiatedProtection {
pub group_data: Cipher,
pub pairwise: Cipher,
pub group_mgmt: Option<Cipher>,
pub akm: Akm,
pub mic_size: u16,
pub protection_type: ProtectionType,
/* private fields */
}
Fields§
§group_data: Cipher
§pairwise: Cipher
§group_mgmt: Option<Cipher>
§akm: Akm
§mic_size: u16
§protection_type: ProtectionType
Implementations§
Source§impl NegotiatedProtection
impl NegotiatedProtection
pub fn from_protection(protection: &ProtectionInfo) -> Result<Self, Error>
pub fn integrity_algorithm(&self) -> Result<Box<dyn Algorithm>, Error>
pub fn keywrap_algorithm(&self) -> Result<Box<dyn Algorithm>, Error>
Sourcepub fn from_rsne(rsne: &Rsne) -> Result<Self, Error>
pub fn from_rsne(rsne: &Rsne) -> Result<Self, Error>
Validates this RSNE contains only one of each cipher type and only one AKM with a defined number of MIC bytes, and produces a corresponding negotiated protection scheme.
Sourcepub fn from_legacy_wpa(wpa: &WpaIe) -> Result<Self, Error>
pub fn from_legacy_wpa(wpa: &WpaIe) -> Result<Self, Error>
Validates that this WPA1 element contains only one of each cipher type and one AKM, and produces a corresponding negotiated protection scheme.
Sourcepub fn to_full_protection(&self) -> ProtectionInfo
pub fn to_full_protection(&self) -> ProtectionInfo
Converts this NegotiatedProtection into a ProtectionInfo that may be written into 802.11 frames.
pub fn igtk_support(&self) -> IgtkSupport
pub fn group_mgmt_cipher(&self) -> Cipher
Trait Implementations§
Source§impl Clone for NegotiatedProtection
impl Clone for NegotiatedProtection
Source§fn clone(&self) -> NegotiatedProtection
fn clone(&self) -> NegotiatedProtection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NegotiatedProtection
impl Debug for NegotiatedProtection
Source§impl PartialEq for NegotiatedProtection
impl PartialEq for NegotiatedProtection
impl StructuralPartialEq for NegotiatedProtection
Auto Trait Implementations§
impl Freeze for NegotiatedProtection
impl RefUnwindSafe for NegotiatedProtection
impl Send for NegotiatedProtection
impl Sync for NegotiatedProtection
impl Unpin for NegotiatedProtection
impl UnwindSafe for NegotiatedProtection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)