Do you have a way to know how many zeros there are? What if the file ends with a zero?

Otherwise, I don't know if CryptoPP has one, but you can definitely write a zero-stripping Filter.

On 08/12/2010 06:11 AM, Frank Fischer wrote:
Hi all,

I managed the problem of my last mail, so this time my question is a quite easier one, hopefully. When I encrypt a file on my Server I cannot change the padding mode and it's set to zeros. When I decrypt the file with Cryptopp using a file sink, the result contains the following zeros that have been added to fill the last block. Is there a way to trim the result directly at the decryption process or do I have to do this manually afterwards?


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