Reputation: 181
I'm trying to implement ElGamal cryptosystem and I decided to use OpenSSL to generate big primes. I've seen several functions that generate big random numbers but I haven't found a function to generate prime numbers. What function should I use?
Upvotes: 1
Views: 929
Reputation: 94018
That's a function of the underlying Big Number (BN) implementation rather than a specific high level crypto function, so I guess you'd use BN_generate_prime_ex
.
Upvotes: 1