[Botan-devel] Botan: Decoding error: AES/CBC/PKCS7

Marcus Proest marcus at proest.net
Thu Apr 14 16:40:46 EDT 2005


Hi Jawwad,

you have to close your file streams for that to work!

        std::ifstream infile("plaintext1.txt");
        std::ofstream outfile("ciphered.txt");

        pipe.start_msg();
        infile >> pipe;
        pipe.end_msg();
        outfile << pipe;

        outfile.close();	//close the file!!!
	infile.close();		//close the file!!!

Regards,
Marcus



More information about the botan-devel mailing list