i'm working on linux and i have a problem. The RSA_generate_key generate always the same public key on different running, and on different sources. How can i generate always different key for each call?
i'm working on linux and i have a problem. The RSA_generate_key generate always the same public key on different running, and on different sources. How can i generate always different key for each call?
what arguments are you calling it with?
What I do to better understand OpenSSL API's is to run the "openssl" app in the debugger. The openssl command line tool can do most things that a develop may want to do in their own code. So it can be used as a "master sample" for most things.
Here is the command line for RSA key generation: OpenSSL: Documents, genrsa(1)
So you could see what's different between your code and how "openssl" does it.
gg