They're the same for CFB, OFB, and CTR modes. The other two, ECB and CBC, can encrypt only whole blocks, or requires padding (which can be done for you by StreamTransformationFilter). Padding will make the ciphertext longer.

--------------------------------------------------
From: "Andy Lewis" <[email protected]>
Sent: Thursday, August 05, 2010 2:19 AM
To: "Crypto++ Users" <[email protected]>
Subject: Are the CipherText and PlainText always the same length?

Hello,

I`d like to know, after encrypting PlainText in any of BlockCipher/in
any of mode, are CipherText and PlainText always same length? Or are
there some modes or ciphers, which produce CipherText, that is longer/
shorter that PlainText?

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