Struct eapol::KeyFrameRx
source · pub struct KeyFrameRx<B: ByteSlice> {
pub eapol_fields: LayoutVerified<B, EapolFields>,
pub key_frame_fields: LayoutVerified<B, KeyFrameFields>,
pub key_mic: B,
pub key_data: B,
}
Fields§
§eapol_fields: LayoutVerified<B, EapolFields>
§key_frame_fields: LayoutVerified<B, KeyFrameFields>
§key_mic: B
§key_data: B
Implementations§
source§impl<B: ByteSlice> KeyFrameRx<B>
impl<B: ByteSlice> KeyFrameRx<B>
pub fn parse(mic_len: usize, eapol_pdu_buf: B) -> Result<Self, Error>
sourcepub fn write_into<A: Appendable>(
&self,
clear_mic: bool,
buf: &mut A
) -> Result<(), Error>
pub fn write_into<A: Appendable>( &self, clear_mic: bool, buf: &mut A ) -> Result<(), Error>
Populates buf with the underlying bytes of this keyframe.
If clear_mic is true, the MIC field will be populated with zeroes. This should be used when recalculating the frame MIC during a key exchange.