Function glass_pumpkin::safe_prime::new
source · pub fn new(bit_length: usize) -> Result
Expand description
Constructs a new safe prime number with a size of bit_length
bits.
This will initialize an OsRng
instance and call the
from_rng()
function.
Note: the bit_length
MUST be at least 128-bits.