- crypto_generate_prime(+N, -P, +Options) is det
- Generate a prime P with at least N bits. Options is a list of options.
Currently, the only supported option is:
- safe(Boolean)
- If Boolean is
true
(default is false
), then a safe prime
is generated. This means that P is of the form 2*Q + 1 where Q
is also prime.