Struct openssl::bn::MsbOption [] [src]

pub struct MsbOption(_);

Options for the most significant bits of a randomly generated BigNum.

Methods

impl MsbOption
[src]

MAYBE_ZERO: MsbOption = MsbOption(-1)

The most significant bit of the number may be 0.

ONE: MsbOption = MsbOption(0)

The most significant bit of the number must be 1.

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.

Trait Implementations

Auto Trait Implementations

impl Send for MsbOption

impl Sync for MsbOption