Trait AlgorithmKeyInit

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

Required Methods§

Source

fn init(&mut self, key: &[u8])

Initializes the algorithm with a key.

This method sets up the internal state of the cipher using the provided key, preparing it for either encryption or decryption.

§Arguments
  • key - A byte slice representing the cryptographic key.

Implementors§