On Mon, Jan 09, 2006, Emmanuel Lepavec wrote: > Concerning the function: int RSA_private_encrypt(...); > > This function returns "-1" when the public exponent "e" is NULL. But, as > far as I know, the RSA encryption with the private key only needs: > - public modulus "n" and > - private exponent "d" > to be mentioned in the RSA structure. > > Is the RSA_private_encrypt not supported? > > I saw the same behavior with a CRT private key. I don't understand why > the public exponent "e" must be mentioned. > Can you explain me this behavior? >
The private key operations check that the operation is successful by performing a public key operation. This requires the value of the public exponent "e". This check is there to avoid certain types of attack. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]