Hi, I am reading this to get some hints about how to use crypto++ to en/ decrypt files. I am a bit confused by Mouse's answer though. I have two questions here:
+ Why did he choose 16-byte zeros as the initial vector for CBC mode? Apparently my guess is wrong and it seems the first 16-byte random prefix of the file is used as the real initial vector. If the file prefix guess is true then how can the decryptFile function decrypt the first 16-byte without knowning the IV. + how does the function call cbcDecryption.ProcessData((byte *)garbage, (const byte *)iv_garbage, 16); make the decryptor state adjust to IV, and file position pointer advance to the past-IV spot. 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. -~----------~----~----~----~------~----~------~--~---
