*
* Returns: ---
*
- * Use: Initializes an SAFER expanded key. A default number of
- * rounds is chosen, based on the key length.
+ * Use: Initializes an SAFER expanded key, with lots of options
+ * controlling how to do it.
*/
struct ksched {
KXS(k, a, b, c, d, e, f, g, h); \
} while (0)
-
void safer_eblk(const safer_ctx *k, const uint32 *src, uint32 *dst)
{
octet a, b, c, d, e, f, g, h;
PACK(dst, a, b, c, d, e, f, g, h);
}
-BLKC_TEST(SAFER, safer)
+/*----- Test rig ----------------------------------------------------------*/
+
+#ifdef TEST_RIG
+
+#include <mLib/testrig.h>
+
+#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 -------------------------------------------------*/