Hi, openssl private_encrypt function does not handle the RSA_PKCS1_OAEP_PADDING. But the public_encrypt () has this PADDING handled. Is there any specific reasons behind this? How to use OAEP padding with PrivateEncyption?
openssl library function: openssl-0.9.6c/crypto/rsa/rsa_eay.c /* signing */ static int RSA_eay_private_encrypt(int flen, unsigned char *from, unsigned char *to, RSA *rsa, int padding) { .... switch (padding) { case RSA_PKCS1_PADDING: i=RSA_padding_add_PKCS1_type_1(buf,num,from,flen); break; case RSA_NO_PADDING: i=RSA_padding_add_none(buf,num,from,flen); break; case RSA_SSLV23_PADDING: default: RSAerr(RSA_F_RSA_EAY_PRIVATE_ENCRYPT,RSA_R_UNKNOWN_PADDING_TYPE); goto err; } ............... ................... } Thanks, GuruGnanam Subramanian, iNautix Technologies, Chennai, India Tel: 91-44-2254 6000 Ext: 1099 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]