Hey Ilya,

if you want to encrypt a file, I think the goal should be that the complete 
file is random looking. TrueCrypt does a pretty good job at that.
I propose that you place the file size encrypted at the beginning of the 
file.
I do even further propose that you might want to take a look at TrueCrypt's 
container header. 
<https://code.google.com/p/cryptsetup/wiki/TrueCryptOnDiskFormat>
You may wanto to exchange some things (CRC -> SHA-3?) but all in all it's 
pretty good header.

BR

JPM

Am Freitag, 20. Februar 2015 07:50:16 UTC+1 schrieb Ilya Bizyaev:
>
> I encrypt a file with AES, but I need to store original file size for 
> decryping. Should I decrypt the file size or not?
>

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

Reply via email to