Re: creating RSA structure when Private key(E,D,N) known

2010-11-27 Thread Kenneth Goldman
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: >

Re: creating RSA structure when Private key(E,D,N) known

2010-11-26 Thread Mounir IDRASSI
Hi, I have developed a while ago a tool that uses OpenSSL in order to perform such conversions (between SFM format and CRT format). I have put it under SourceForge (source and binary): http://rsaconverter.sourceforge.net/ The binary is for Windows but the sources (librsaconverter.c and librs

Re: creating RSA structure when Private key(E,D,N) known

2010-11-26 Thread Dr. Stephen Henson
On Thu, Nov 25, 2010, Chir wrote: > > Hi guys, > > 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. >

creating RSA structure when Private key(E,D,N) known

2010-11-26 Thread Chir
Hi guys, 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. Thanks Chir -- View this message in context: h