pub trait IvState<C, P>: BlockMode<C, P>where
C: BlockCipher,
P: Padding,{
// Required method
fn iv_state(&self) -> GenericArray<u8, Self::IvSize>;
}
Expand description
Trait for a BlockMode, used to obtain the current state in the form of an IV that can initialize a BlockMode later and resume the original operation.
The IV value SHOULD be used for resuming operations only and MUST NOT be exposed to attackers. Failing to comply with this requirement breaks unpredictability and opens attack venues (see e.g. 1, sec. 3.6.2).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.