I am not sure how to use IV in CBC mode. I am using the following code: mCipher = CryptoPP::CBC_Mode<CryptoPP::DES>::Encryption(...) CryptoPP::StreamTransformationFilter(*mCipher, ...)
This works OK if I pass the IV in, and pass in the same IV to the decryptor (of course). This is OK if I am using a zero IV. But if I use a random IV I need to pass this from the encryptor to the decryptor. How is this normally done? I read somewhere that it is usually passed as the first block of the encrypted stream - is that standard? Is there support for this in cryptopp? ---------------- ImagingStuff.com
