Encrypting/decrypting a block at a time as Takaaki Ishii mentioned is the
way to do this, if you must. Since RSA encrypt/decrypt takes so much
processing power in comparison to symmetric ciphers (DES, 3DES, RC4, etc.)
another way to encrypt the file is to generate a symmetric key, encrypt it
with the RSA key and write it at the start of the output file, then encrypt
the remainder of the file with the symmetric key.
Steven
> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 11, 2001 10:48 PM
> To: [EMAIL PROTECTED]
> Subject: how do I encrypt large files with rsa ??
>
>
>
> Hi,
>
>
> I want to encrypt large files with RSA. At the moment I can encrypt
> approx.
> 200 characters at a time. But when I write the encrypted data to disk, how
> do I know how much characters to read in to decrypt ?? I thought about the
> extra padding bits, so i have to read in 211 (for PKCS1) bits, but that´s
> not it.
>
> Any help is appreciated,
>
> With kind regards,
>
> Thijs.
>
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]