Nabla
Nabla

Reputation: 181

How to generate big prime numbers using the OpenSSL library?

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

Answers (1)

Maarten Bodewes
Maarten Bodewes

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

Related Questions