pub fn generate_prime(
num_bits: usize,
modulo: u64,
upper_bound: u64,
) -> Option<u64>Expand description
Generate a num_bits-bit prime, congruent to 1 mod modulo, strictly
smaller than upper_bound. Note that num_bits must belong to (10..=62),
and upper_bound must be <= 1 << num_bits.