Struct wlan_rsn::rsna::EncryptedKeyData
source · pub struct EncryptedKeyData<B: ByteSlice>(/* private fields */);
Expand description
Wraps an EAPOL key frame to enforces successful decryption before the frame can be used.
Implementations§
source§impl<B: ByteSlice> EncryptedKeyData<B>
impl<B: ByteSlice> EncryptedKeyData<B>
sourcepub fn decrypt(
self,
kek: &[u8],
protection: &NegotiatedProtection,
) -> Result<(KeyFrameRx<B>, Vec<u8>), Error>
pub fn decrypt( self, kek: &[u8], protection: &NegotiatedProtection, ) -> Result<(KeyFrameRx<B>, Vec<u8>), Error>
Yields a tuple of the captured EAPOL Key frame and its decrypted key data if encryption was successful. Otherwise, an Error is returned.
Auto Trait Implementations§
impl<B> Freeze for EncryptedKeyData<B>where
B: Freeze,
impl<B> RefUnwindSafe for EncryptedKeyData<B>where
B: RefUnwindSafe,
impl<B> Send for EncryptedKeyData<B>where
B: Send,
impl<B> Sync for EncryptedKeyData<B>where
B: Sync,
impl<B> Unpin for EncryptedKeyData<B>where
B: Unpin,
impl<B> UnwindSafe for EncryptedKeyData<B>where
B: UnwindSafe,
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