Enum openssl::bn::RNGProperty [−][src]
#[repr(C)]pub enum RNGProperty { MsbMaybeZero, MsbOne, TwoMsbOne, }
Specifies the desired properties of a randomly generated BigNum.
Variants
MsbMaybeZeroThe most significant bit of the number is allowed to be 0.
MsbOneThe MSB should be set to 1.
TwoMsbOneThe two most significant bits of the number will be set to 1, so that the product of two
such random numbers will always have 2 * bits length.
Trait Implementations
impl Copy for RNGProperty[src]
impl Copy for RNGPropertyimpl Clone for RNGProperty[src]
impl Clone for RNGPropertyfn clone(&self) -> RNGProperty[src]
fn clone(&self) -> RNGPropertyReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for RNGProperty
impl Send for RNGPropertyimpl Sync for RNGProperty
impl Sync for RNGProperty