Hi,

 int RSA_public_encrypt(int flen, unsigned char *from,
    unsigned char *to, RSA *rsa, int padding);

It seems that there is a bug in RSA_public_encrypt with the padding
method set as RSA_NO_PADDING.

The bug is: when flen is not the RSA key size (e.g., 32 bytes), the
function returns -1 and no encryption is done.


Xinwen Fu
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to