Hi,

i am currently working on a project that requires me to parallel
encrypt a file and decrypt the file as whole. I figured that I could
use AES with cipher mode CTR to do it. However in order to get it
working, I have to get this out plaintext size = ciphertext size.

I tried out a few tests to see how different plaintext size affects
the ciphertext.

I found out that if input size is greater than 4096, the ciphertext
size is larger than plaintext size. Is there a way to get the
ciphertext size to be the same as plaintext size and yet it can still
decrypt the file as whole?

CryptoPP::StringSource(plainText, true, new
CryptoPP::StreamTransformationFilter(Encryptor, new
CryptoPP::StringSink(CipherText)));

This is what I did. Thanks


--~--~---------~--~----~------------~-------~--~----~
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