hi everybody..
 
i try to generate public key.
see the following code.
 
...
...
rsa =  RSA_generate_key(num, f4, genrsa_cb, bio_err);
...
PEM_write_bio_RSAPrivateKey(out, rsa, enc, NULL, 0, NULL, passout);
PEM_wirte_bio_RSAPublicKey(out, rsa);
...
...
 
is it right?
is it private/public key pair?
 
please answer me.

Reply via email to