Trait AlgorithmKeyIVInit

Source
pub trait AlgorithmKeyIVInit {
    // Required method
    fn init(&mut self, key: &[u8], iv: &[u8]);
}

Required Methods§

Source

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.

Implementors§