libtomcrypt/testprof
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
..
base64_test.c added libtomcrypt-1.03 2010-06-16 12:38:34 +02:00
cipher_hash_test.c When a test fails, print the algorithm that it failed on. 2012-11-18 15:20:10 +01:00
der_tests.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
dh_test.c rejoined diffie hellman code from ltc 1.05, thanks to Alexander Kurpiers 2011-01-18 20:06:03 +01:00
dsa_test.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
ecc_test.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
katja_test.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
mac_test.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
makefile rejoined diffie hellman code from ltc 1.05, thanks to Alexander Kurpiers 2011-01-18 20:06:03 +01:00
makefile.icc added libtomcrypt-1.13 2010-06-16 12:39:00 +02:00
makefile.msvc added libtomcrypt-1.13 2010-06-16 12:39:00 +02:00
makefile.shared added libtomcrypt-1.13 2010-06-16 12:39:00 +02:00
modes_test.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
pkcs_1_test.c added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
rsa_test.c removed testing of "stripped" rsa key 2011-03-21 21:17:31 +01:00
store_test.c added libtomcrypt-1.03 2010-06-16 12:38:34 +02:00
test_driver.c When a test fails, print the algorithm that it failed on. 2012-11-18 15:20:10 +01:00
test.der added libtomcrypt-1.06 2010-06-16 12:38:41 +02:00
test.key added libtomcrypt-1.03 2010-06-16 12:38:34 +02:00
tomcrypt_test.h When a test fails, print the algorithm that it failed on. 2012-11-18 15:20:10 +01:00
x86_prof.c import of libtomcrypt 2010-06-16 19:58:20 +02:00