Struct S2vState Copy item path Source pub struct S2vState<'a, C: AesCipher > { }Expand description Incremental RFC 5297 §2.4 S2V state.
Associated-data components are absorbed one at a time with
push_component ; the final vector component (the
plaintext) is supplied to finalize , which returns the
synthetic IV V. The state borrows a single keyed cipher, so one key
schedule serves every CMAC in the computation.
Initialize the running value: D = CMAC(K, <zero>).
Absorb one associated-data component S_i, streamed through feed:
D = dbl(D) xor CMAC(K, S_i).
Finish with the final component S_n and return V.
Per RFC 5297: V = CMAC(K, S_n xorend D) when S_n fills a block,
otherwise V = CMAC(K, dbl(D) xor pad(S_n)).
Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.