pub struct EncryptedKeyData<B: SplitByteSlice>(/* private fields */);
Expand description
Wraps an EAPOL key frame to enforces successful decryption before the frame can be used.
Implementations§
Source§impl<B: SplitByteSlice> EncryptedKeyData<B>
impl<B: SplitByteSlice> 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