Carl Wanting wrote:
> 
> Hi all,
> I am trying to use the RSA_public_decrypt function but I need to set up the
> public key "manually"  I have the public exponent and modulus in the form of
> an array of unsigned char and have converted these to BIGNUM format using
> BN_bin2bn.  However, this is where I have started hitting problems.  I
> thought that merely assigning them to the RSA structures n and e fields work
> but that just did not cut it.
> When I called RSA_check_key I receive an access violation in libeay32 (at
> address cx0000005) and any attempts to actually call RSA_public_decrypt
> return -1.  calling ERR_get_error after this produces an AV in on of the NT
> dlls (NTDLL I think).  I am using Win2K pro and am working in VC++ 6
> Can anybody please help me- this is driving me insane
> 

RSA_check_key() only works on private keys.

Wrt the AVs, check the FAQ.

As for the real cause, hard to say without seeing your code.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to