cecbbb88fc
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() |
||
---|---|---|
.. | ||
base64_test.c | ||
cipher_hash_test.c | ||
der_tests.c | ||
dh_test.c | ||
dsa_test.c | ||
ecc_test.c | ||
katja_test.c | ||
mac_test.c | ||
makefile | ||
makefile.icc | ||
makefile.msvc | ||
makefile.shared | ||
modes_test.c | ||
pkcs_1_test.c | ||
rsa_test.c | ||
store_test.c | ||
test_driver.c | ||
test.der | ||
test.key | ||
tomcrypt_test.h | ||
x86_prof.c |