[Botan-devel] Botan::Invalid_IV_Length segfault
John Proffer
jproffer at vli-dc.com
Mon Jun 25 11:00:01 EDT 2007
Sorry for the mess in my previous post - I used Reply and forgot to
clear the contents. here's a cleaner post :)
Hi, I'm getting Botan::Invalid_IV_Length runtime errors. My IV key is
32 bytes in length, and I initialize it with the following code:
Botan::LibraryInitializer *botan_init = new
Botan::LibraryInitializer(/*"secure_memory thread_safe"*/);
Botan::byte mykey[33] = {"9j&RgczP-%Y#z65zxp$~#U=-ftXzSHzz" };
Botan::byte mypass[33] = {"zfzgFsz7:zN#z2za98_a0!#:L=ozxz!z"};
Botan::InitializationVector iv(mypass,32);
Botan::SymmetricKey key(mykey,32);
Botan::Pipe pipe(get_cipher("AES-256/CFB/NoPadding", key,
Botan::ENCRYPTION));
application crashes at Botan::Pipe
pipe(get_cipher("AES-256/CFB/NoPadding", key, Botan::ENCRYPTION));
I tried a 16 byte key with the same result. Am I forgetting something?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jproffer.vcf
Type: text/x-vcard
Size: 392 bytes
Desc: not available
Url : http://www.randombit.net/pipermail/botan-devel/attachments/20070625/e2e2102b/jproffer-0001.vcf
More information about the botan-devel
mailing list