On Mon, Jan 09, 2006 at 01:57:46PM +0100, 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? >
The private key is for signing and decryption, the public key is for signature verification and encryption... Do not encrypt/decrypt arbitrary data with RSA (only suitable message digests, session keys, and other standard uses). -- Viktor. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]