Hi Eva2002,

An certain amount of upsizing is expected based on original plain text
size, padding and block sizes.

Perhaps you could create a similar situation by compressing your text
first. In this case, the the compressed text and encrytped
(compressed) text would probably be less than the uncompressed plain
text size.

Jeff

On 10/17/07, eva2002 <[EMAIL PROTECTED]> wrote:
>
> 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