pub struct WithUnverifiedMic<B: SplitByteSlice>(/* private fields */);
Expand description
Wraps an EAPOL key frame to enforce successful MIC verification before the frame can be used.
Implementations§
Source§impl<B: SplitByteSlice> WithUnverifiedMic<B>
impl<B: SplitByteSlice> WithUnverifiedMic<B>
Sourcepub fn verify_mic(
self,
kck: &[u8],
protection: &NegotiatedProtection,
) -> Result<UnverifiedKeyData<B>, Error>
pub fn verify_mic( self, kck: &[u8], protection: &NegotiatedProtection, ) -> Result<UnverifiedKeyData<B>, Error>
Yields the captured EAPOL Key frame if the MIC was successfully verified. The Key frame is wrapped to enforce decryption of potentially encrypted key data. Returns an Error if the MIC is invalid.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for WithUnverifiedMic<B>where
B: Freeze,
impl<B> RefUnwindSafe for WithUnverifiedMic<B>where
B: RefUnwindSafe,
impl<B> Send for WithUnverifiedMic<B>where
B: Send,
impl<B> Sync for WithUnverifiedMic<B>where
B: Sync,
impl<B> Unpin for WithUnverifiedMic<B>where
B: Unpin,
impl<B> UnwindSafe for WithUnverifiedMic<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