[botan-devel] False assertion 'The nonce is fresh for this message' (expression m_fresh_nonce)
lbromo12 at student.aau.dk
Wed Mar 9 12:40:28 EST 2016
Im trying to run one of the examples in the user guide.
The first example with AES (there is a small error, after AutoSeeded_RNG rng should the ',' be changed to a ';').
How ever i am getting the following error:
terminate called after throwing an instance of 'Botan::Exception'
what(): False assertion 'The nonce is fresh for this message' (expression m_fresh_nonce) in get @src/lib/filters/transform_filter.cpp:49
I'm using version 1.11.28, gcc 5.3.0.
The code I've compiled looks as the following:
using namespace Botan;
std::cout << version_string() << std::endl;
SymmetricKey key(rng, 16); // a random 128-bit key
InitializationVector iv(rng, 16); // a random 128-bit IV
// The algorithm we want is specified by a string
Pipe pipe(get_cipher("AES-128/CBC", key, iv, ENCRYPTION));
secure_vector<byte> c1 = pipe.read_all(0);
I really hope someone can help me :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the botan-devel