pub fn decode(
keys: &[NetworkKey],
iv_index: u32,
data: &[u8],
) -> Option<(usize, u32, NetworkPdu)>Expand description
Decodes a Network PDU with whichever key opens it. iv_index is the
current one; a PDU whose IVI bit differs is tried with the one before
(during an IV update). Returns the key’s position, the IV index used and
the PDU.