> 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.
What is the principle behind this design?
Thanks!
Xinwen Fu
>
> 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]
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]