AES128 in CBC mode implementation using Crypto++ library
问题 In the input file I have: on the first line a key which is encoded in hex and with length of 16 bytes; on the second line encrypted message ( AES128 in CBC mode , with a random iv prepended to the encrypted message). This is how I tried to decrypt: #include<iostream> using namespace std; #include <fstream> #include <string.h> #include <cryptopp/aes.h> #include <cryptopp/modes.h> #include <cryptopp/filters.h> using namespace CryptoPP; int main(void) { ifstream in("input0.txt"); ofstream out(