Patrick Pelletier cecbbb88fc When a test fails, print the algorithm that it failed on.
As near as I can tell, LibTomCrypt doesn't provide any way to tell
which cipher failed when it reports a cipher test failure.  For
example, I was getting:

Algorithm failed test vectors. (5)
cipher_hash_test.c:14:cipher_descriptor[x].test()

But there's no way to tell what value x has, and even if there was, it
would take a bit of digging to determine which algorithm that
corresponds to.  So, I added a variant of the DO() macro, DOX(), which
takes an additional string argument which is displayed on failure.  So
now I get:

Algorithm failed test vectors. (5) - camellia
cipher_hash_test.c:14:cipher_descriptor[x].test()
2012-11-18 15:20:10 +01:00
2010-06-16 12:39:13 +02:00
2011-01-18 19:42:38 +01:00
2012-11-18 15:20:08 +01:00
2011-03-21 22:59:59 +01:00
2010-06-16 12:39:13 +02:00
2010-06-16 12:39:13 +02:00
2010-06-16 12:39:13 +02:00
2010-06-16 12:38:49 +02:00
2010-06-16 12:39:06 +02:00
2010-06-16 12:38:41 +02:00
2010-06-16 12:39:13 +02:00
2010-06-16 19:58:20 +02:00
2010-06-16 19:58:20 +02:00
2010-06-16 19:58:20 +02:00
2010-06-16 19:58:20 +02:00
2010-06-16 12:38:57 +02:00
2010-06-16 12:38:34 +02:00
2010-06-16 12:39:09 +02:00
2010-06-16 12:38:41 +02:00
2010-06-16 12:38:41 +02:00
2011-05-20 09:41:57 +02:00
2010-06-16 12:39:13 +02:00
2010-06-16 12:39:09 +02:00

See doc/crypt.pdf


Description
No description provided
Readme WTFPL 18 MiB
Languages
C 98.2%
Makefile 0.7%
Perl 0.4%
Shell 0.3%
Java 0.2%
Other 0.1%