Assuming C, the way I do it is:

- RSA_new() a key token
- Convert the n,e,d from binary (unsigned char) arrays to BIGNUMs using 
bin2bn
- assign the n,e,d BIGNUM's to the RSA structure

Use the key token. 

RSA_free() when done.

owner-openssl-us...@openssl.org wrote on 11/25/2010 07:32:45 AM:

> i want to create a RSA structure to pass this to RSA_private_decrypt(). 
I am
> not generating keys i am getting keys from second party. i have got N, 
D, E
> but i dnt know how to generate p, q required to fill the RSA structure.
> Please help.

> 

Reply via email to