Struct openssl::bn::MsbOption [−][src]
pub struct MsbOption(_);
Options for the most significant bits of a randomly generated BigNum
.
Methods
impl MsbOption
[src]
impl MsbOption
pub const MAYBE_ZERO: MsbOption
MAYBE_ZERO: MsbOption = MsbOption(-1)
The most significant bit of the number may be 0.
pub const ONE: MsbOption
ONE: MsbOption = MsbOption(0)
The most significant bit of the number must be 1.
pub const TWO_ONES: MsbOption
TWO_ONES: MsbOption = MsbOption(1)
The most significant two bits of the number must be 1.
The number of bits in the product of two such numbers will always be exactly twice the number of bits in the original numbers.