I want to generate a RSA private key in a program. Then I use the function RSA_generate_key and write code as following:
RSA *rsa=NULL;
 
rsa=RSA_generate_key(512, RSA_F4, NULL, NULL);
 
But the result of rsa is not a private key. Who can tell me the reason?
 
Yi Tianshu

Reply via email to