pub trait AlgorithmKeyIVInit {
// Required method
fn init(&mut self, key: &[u8], iv: &[u8]);
}Required Methods§
Sourcefn init(&mut self, key: &[u8], iv: &[u8])
fn init(&mut self, key: &[u8], iv: &[u8])
Initializes the algorithm with a key and an initialization vector (IV).
This method sets up the internal state of the cipher using the provided key and IV, preparing it for either encryption or decryption.
§Arguments
key- A byte slice representing the cryptographic key.iv- A byte slice representing the initialization vector.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".