Reputation: 27
I have a question :
How can I generate an 18-digits prime number with OpenSSL in Lazarus ?
even I searched the web , I don`t know the command yet ,
thank you all
Upvotes: 0
Views: 632
Reputation: 94018
So the simplest thing you can do is to look for primes yourself using random numbers generated by OpenSSL:
BN_rand_range
function;BN_add(BN_mul(2, x), 1)
;BN_is_prime_ex(y)
returns OK for BN_prime_checks
then you found your prime, otherwise goto 1.Upvotes: 1