Xinwen Fu wrote:
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.

Hmm, that's not a bug. If RSA_NO_PADDING is used the input must have the same size as the modulus.

Nils


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

Reply via email to