Support block ciphers with larger blocks.
authormdw <mdw>
Mon, 7 May 2001 17:28:42 +0000 (17:28 +0000)
committermdw <mdw>
Mon, 7 May 2001 17:28:42 +0000 (17:28 +0000)
blkc.h

diff --git a/blkc.h b/blkc.h
index 6e1ea0a..54f883d 100644 (file)
--- a/blkc.h
+++ b/blkc.h
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: blkc.h,v 1.4 2001/04/29 17:39:15 mdw Exp $
+ * $Id: blkc.h,v 1.5 2001/05/07 17:28:42 mdw Exp $
  *
  * Common definitions for block ciphers
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: blkc.h,v $
+ * Revision 1.5  2001/05/07 17:28:42  mdw
+ * Support block ciphers with larger blocks.
+ *
  * Revision 1.4  2001/04/29 17:39:15  mdw
  * Removed `-sched' tests.  Reorganized so that we can theoretically have
  * multiple tests in the same file.  (This isn't so useful in production,
 #define BLKC_SKEL_128(PRE, decl, op, guts)                             \
   BLKC_SKEL(PRE, decl, guts(op, 0); guts(op, 1); guts(op, 2); guts(op, 3);)
 
+#define BLKC_SKEL_192(PRE, decl, op, guts)                             \
+  BLKC_SKEL(PRE, decl,                                                 \
+           guts(op, 0); guts(op, 1); guts(op, 2); guts(op, 3);         \
+           guts(op, 4); guts(op, 5);)
+
+#define BLKC_SKEL_256(PRE, decl, op, guts)                             \
+  BLKC_SKEL(PRE, decl,                                                 \
+           guts(op, 0); guts(op, 1); guts(op, 2); guts(op, 3);         \
+           guts(op, 4); guts(op, 5); guts(op, 6); guts(op, 7);)
+
 #define BLKC_STORE_GUTS(op, i) op(_p + 4 * i, _w[i])
 #define BLKC_XSTORE_GUTS(op, i) op(_p + 4 * i, _w[i] ^ _wx[i])
 #define BLKC_LOAD_GUTS(op, i) _w[i] = op(_p + 4 * i)