Module glass_pumpkin::prime
source · Expand description
Generates cryptographically secure prime numbers.
Functions
- Test if number is prime by
- Test if number is prime by
- Create a new prime number with size
bit_length
sourced from an already-initializedRngCore
- Constructs a new prime number with a size of
bit_length
bits. - Checks if number is a prime using the Baillie-PSW test
- Checks if number is a prime using the Baillie-PSW test