Trait AlgorithmProcessInPlace

Source
pub trait AlgorithmProcessInPlace {
    // Required method
    fn process_in_place(&self, data: &mut [u8]);
}

Required Methods§

Source

fn process_in_place(&self, data: &mut [u8])

Processes the provided data (either encrypts or decrypts, depending on the implementation).

This method applies the cipher’s permutation logic to the provided data, returning the processed data as a new vector of bytes.

§Arguments
  • data - A byte slice of data to be processed (encrypted or decrypted).
§Returns

A vector of bytes representing the processed data.

Implementors§