[botan-devel] Buffered filter end_msg without enough input

Navin Francis navin.kurupacheril at gmail.com
Tue Apr 16 19:03:03 EDT 2013


When I tried to encrypt a string using Serpent/XTS I got "Buffered filter
end_msg without enough input". Are these minimum input sizes documented
anywhere?

#include <iostream>
#include <tchar.h>
#include "botan_all.h"
using namespace Botan;
int _tmain(int argc, _TCHAR* argv[])
{
try{
Botan::AutoSeeded_RNG rng;
Botan::SymmetricKey key(rng, 256/8);
Botan::InitializationVector iv(rng, 128/8);
//Pipe p(get_cipher("AES-256/CBC",key,iv, Botan::ENCRYPTION));//Works
//Pipe p(get_cipher("Serpent/XTS",key,iv, Botan::ENCRYPTION));//Fails
p.process_msg("hello");
}catch(std::exception& e){std::cerr << e.what() << "\n";}
getchar();
}

regards
Navin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20130416/2115fd6d/attachment.html>


More information about the botan-devel mailing list