wlan_rsn::key::exchange

Function compute_mic

Source
pub fn compute_mic<B: SplitByteSlice>(
    kck: &[u8],
    protection: &NegotiatedProtection,
    frame: &KeyFrameRx<B>,
) -> Result<Vec<u8>, Error>
Expand description

Computes and returns a key frame’s MIC. Fails if the AKM has no associated integrity algorithm or MIC size, the given Key Frame’s MIC has a different size than the MIC length derived from the AKM or the Key Frame doesn’t have its MIC bit set.