Enum encryptfile::InitializationVector [] [src]

pub enum InitializationVector {
    Unknown,
    GenerateFromRng,
    Func(Rc<Box<Fn() -> IvArray>>),
}

Specifies the initialization vector. Note, when decrypting, you do not need to specify this since the IV is in the file.

Variants

Unknown
GenerateFromRng

Generate the vector randomly. See RngMode.

Func

Use the specified function to provide the IV. It should return a fully populated IV array.

Trait Implementations

Derived Implementations

impl Clone for InitializationVector

fn clone(&self) -> InitializationVector

fn clone_from(&mut self, source: &Self)