On Thu, May 28, 2009 at 9:20 AM, wiired <[email protected]> wrote:
> I need to encrypt and decrypt large files (up to a few GB) so I need
> to do the encryption/decryption one chunk at a time (128KB) to keep
> memory utilization low.
It looks to me like either writing your own sink, or using an existing
one that writes to a file may be the best bet.

Decryption/Encryption would be a small process of:

  Sink( Decryption Filter ( FileSource ) )

The decryption filter would be pulling the minimal chunk to decrypt
from the source and pumping output to the think.
You might also want to put in a buffering source in there (I don't
recall if FileSource helps w/ that) and set
it's buffer level to your 'chunk size' (128KB).

The Decryption/Encryption filters would handle your padding
automatically at the end of the stream and you'd be all set.
-- 
Thomas Harning Jr.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to