X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/16efb197c59c4b4cfaef7b2f23bd39f70176dd9e..6a024d24d97cb5d42c0091571735475b849f59f4:/symm/safer.c diff --git a/symm/safer.c b/symm/safer.c index a75e6147..569eb839 100644 --- a/symm/safer.c +++ b/symm/safer.c @@ -318,6 +318,29 @@ void safer_dblk(const safer_ctx *k, const uint32 *src, uint32 *dst) PACK(dst, a, b, c, d, e, f, g, h); } -BLKC_TEST(SAFER, safer) +/*----- Test rig ----------------------------------------------------------*/ + +#ifdef TEST_RIG + +#include + +#define CIPHERS(_) \ + _(SAFER, safer) \ + _(SAFERSK, safersk) + +CIPHERS(BLKC_VERIFY) + +static const test_chunk defs[] = { + CIPHERS(BLKC_TESTDEFS) + { 0, 0, { 0 } } +}; + +int main(int argc, char *argv[]) +{ + test_run(argc, argv, defs, SRCDIR "/t/safer"); + return (0); +} + +#endif /*----- That's all, folks -------------------------------------------------*/