I'm decrypting some file with Botan like this:
std::ifstream in (InFilename.c_str(), std::ios::binary);
in.ignore(32);
std::ofstream out (outFilename.c_str(), std::ios::binary);
Pipe pipe(get_cipher("AES-256/CBC",key,iv, DECRYPTION),new DataSink_Stream(out));
try{
pipe.start_msg();
in >> pipe;
pipe.end_msg();
out.flush();
out.close();
in.close();
after i'm receiving signal, that file is decrypted and i'm opening this file like a pdf:
pdf->openFile(outFilename);
Everithing works perfect and fast. But decrypted file located in the same folder, and i want to decrypt file in memory, such as memory mapped file and send it direct to openFile without saving in filesystem. How can i do this? Probably there're a lot of different possibilities with Qt, and Core C++. Thank you!