symm/blkc.h: Add a hook for cipher-specific initialization.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 4 Nov 2019 12:18:01 +0000 (12:18 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 9 May 2020 19:57:33 +0000 (20:57 +0100)
You'll see what this is for soon.

symm/blkc.h

index 069c1da..444ec8d 100644 (file)
 #include <mLib/quis.h>
 #include <mLib/testrig.h>
 
+#ifndef BLKC_TESTHOOK
+#  define BLKC_TESTHOOK do ; while (0)
+#endif
+
 #define BLKC_VERIFY(PRE, pre) BLKC_VERIFYX(PRE, pre, #pre)
 
 #define BLKC_VERIFYX(PRE, pre, name)                                   \
@@ -478,6 +482,7 @@ static const test_chunk defs[] = {                                  \
                                                                        \
 int main(int argc, char *argv[])                                       \
 {                                                                      \
+  BLKC_TESTHOOK;                                                       \
   test_run(argc, argv, defs, SRCDIR"/t/" fname);                       \
   return (0);                                                          \
 }