Enum encryptfile::RngMode
[−]
[src]
pub enum RngMode { Os, OsIssac, OsRandIssac, Func(Rc<Box<Fn() -> u8>>), }
Controls how random numbers are generated whenever they are needed by this library.
Currently this is only required when generating an initialization vector
(InitializationVector::GenerateFromRng
). Note, when decrypting, you do not need
to specify this.
Variants
Os
Use the Os RNG only
OsIssac
Use a combination of the Os and Isaac64 generators. Isaac is seeded with the Os RNG, and the two RNGs are used to generate the resulting IV 50/50.
OsRandIssac
Use a combination of the Os,
rand::random
, and Isaac.
Isaac is seeded with the Os Rng
and rand. Os and Isaac are used to generate the resulting IV 50/50.
Func(Rc<Box<Fn() -> u8>>)
Use the specified function to generate random u8 values. The function should return a random u8 each time it is called.
Trait Implementations
impl Clone for RngMode
[src]
fn clone(&self) -> RngMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more