I\'m trying to encrypt(and decrypt after) a file using AES in CBC mode and Crypto++ library
Here\'s what I already did:
using namespace CryptoPP;
Aut
The StringSink has the following documentation:
A
StringSinkserves as a destination for string data in the pipelining paradigm. The data can be binary or ASCII.
So although it is a string, it is internally an octet- or byte string. So yes, you can just save the IV and ciphertext that way.
But to be sure, just compare the length of the result with the IV size (16 bytes) and ciphertext size together. If it is equal then you should be fine.