HAv a look into the archives (what you anyway should have done
before). There was a thread just one or two days ago that
answered your question.
In short: you can't do this! (And you even would not want to encrypt
large buffers with RSA for performance reasons.)
ŠIŠKA Július schrieb:
>
> Hello,
>
> how can I simply RSA encrypt buffer (its length may be greater than
> RSA_size()) ?
> If I use: RSA_public_encrypt(10000, from, to, rsa, RSA_PKCS1_PADDING) with
> key
> with modulo length small enough (e.g. 4096) I am not able correctly decrypt
> to buffer. Can somebody help ?
>
> With best regards,
> Julius Siska
> <[EMAIL PROTECTED]>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
--
Holger Reif Tel.: +49 361 74707-0
SmartRing GmbH Fax.: +49 361 7470720
Europaplatz 5 [EMAIL PROTECTED]
D-99091 Erfurt WWW.SmartRing.de
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]