Struct eapol::KeyFrameTxFinalizer
source · pub struct KeyFrameTxFinalizer { /* private fields */ }
Expand description
KeyFrameTxFinalizer stores a key frame that has been serialized into a buffer, but which may still require the addition of a MIC before it can be transmitted.
Implementations§
source§impl KeyFrameTxFinalizer
impl KeyFrameTxFinalizer
sourcepub fn unfinalized_buf(&self) -> &[u8] ⓘ
pub fn unfinalized_buf(&self) -> &[u8] ⓘ
Access a key frame buffer that may still need to have its MIC field populated. This should generally only be used when calculating the MIC to pass to finalize_with_mic.
sourcepub fn finalize_with_mic(self, mic: &[u8]) -> Result<KeyFrameBuf, Error>
pub fn finalize_with_mic(self, mic: &[u8]) -> Result<KeyFrameBuf, Error>
Generate a final key frame buffer. Fails if the given MIC is the wrong size, or if the key_mic bit is not set for this frame.
sourcepub fn finalize_without_mic(self) -> Result<KeyFrameBuf, Error>
pub fn finalize_without_mic(self) -> Result<KeyFrameBuf, Error>
Generate a final key frame buffer. Fails if the key_mic bit is set for this frame.