Hi, I have big file, that I need to encrypt. How can I read it by chunks, gzip each chunk that I read, and then encrypt the gzipped chunk using aes?
My actual code: CryptoPP::FileSource fileContentSrc(filePath.c_str(), true, new CryptoPP:: StringSink(fileContent)); aesEncrypt(&fileContent, aesKey, aesIv); ^^ Here I need to read the file by chunks, Gzip it, then encrypt (the *aesEncrypt()* function handle it), and then put it to the end of help string (I think), so I can the whole encrypted file put into new file from my helper string. How can I achieve that? I read Wiki, tried to Google, but I can't figure it out how to do this. :( Also tried this forum, but there is 10 year old threads and I wan't to use pipelines. BTW. Sorry for my dumb questions. I know, that this is my fourth question for past 3 days. Also sorry for my English, because I'm not native. -- -- 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. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
