Flowdock
generate_prime(p1, p2 = v2, p3 = v3, p4 = v4) public

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.

Parameters

  • bits - integer

  • safe - boolean

  • add - BN

  • rem - BN

Show source
Register or log in to add new notes.