OpenSSL::BN
class OpenSSL::BN
Public Class Methods
generate_prime(bits, [, safe [, add [, rem]]]) → bn Show source
Generates a random prime number of bit length bits
. If safe
is true, generates a safe prime. If add
is specified, generates a prime that fulfills condition p % add =
rem
.