Indentation fix.
[u/mdw/catacomb] / rspit.c
diff --git a/rspit.c b/rspit.c
index 26fd888..831dde7 100644 (file)
--- a/rspit.c
+++ b/rspit.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: rspit.c,v 1.14 2001/02/21 20:03:22 mdw Exp $
+ * $Id: rspit.c,v 1.19 2001/06/16 23:42:17 mdw Exp $
  *
  * Spit out random numbers
  *
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: rspit.c,v $
+ * Revision 1.19  2001/06/16 23:42:17  mdw
+ * Typesetting fixes.
+ *
+ * Revision 1.18  2001/05/08 22:17:41  mdw
+ * New cipher Noekeon added.
+ *
+ * Revision 1.17  2001/05/07 17:33:19  mdw
+ * New Rijndael block sizes.
+ *
+ * Revision 1.16  2001/04/29 18:11:32  mdw
+ * New block ciphers.
+ *
+ * Revision 1.15  2001/04/19 18:26:13  mdw
+ * Use the new MAC keysize names.
+ *
  * Revision 1.14  2001/02/21 20:03:22  mdw
  * Added support for MD2 hash function.
  *
 #include "des3-ofb.h"
 #include "rc2-ofb.h"
 #include "rc5-ofb.h"
+#include "mars-ofb.h"
 #include "skipjack-ofb.h"
 #include "tea-ofb.h"
 #include "xtea-ofb.h"
 #include "idea-ofb.h"
 #include "cast128-ofb.h"
 #include "cast256-ofb.h"
+#include "noekeon-ofb.h"
 #include "rijndael-ofb.h"
+#include "rijndael192-ofb.h"
+#include "rijndael256-ofb.h"
+#include "safer-ofb.h"
+#include "safersk-ofb.h"
 #include "square-ofb.h"
 #include "serpent-ofb.h"
 
 #include "des3-counter.h"
 #include "rc2-counter.h"
 #include "rc5-counter.h"
+#include "mars-counter.h"
 #include "skipjack-counter.h"
 #include "tea-counter.h"
 #include "xtea-counter.h"
 #include "idea-counter.h"
 #include "cast128-counter.h"
 #include "cast256-counter.h"
+#include "noekeon-counter.h"
 #include "rijndael-counter.h"
+#include "rijndael192-counter.h"
+#include "rijndael256-counter.h"
+#include "safer-counter.h"
+#include "safersk-counter.h"
 #include "square-counter.h"
 #include "serpent-counter.h"
 
@@ -181,6 +208,7 @@ extern gen generators[];
   E(DES3, des3)                                                                \
   E(RC2, rc2)                                                          \
   E(RC5, rc5)                                                          \
+  E(MARS, mars)                                                                \
   E(SKIPJACK, skipjack)                                                        \
   E(TEA, tea)                                                          \
   E(XTEA, xtea)                                                                \
@@ -190,7 +218,12 @@ extern gen generators[];
   E(CAST128, cast128)                                                  \
   E(CAST256, cast256)                                                  \
   E(SQUARE, square)                                                    \
+  E(SAFER, safer)                                                      \
+  E(SAFERSK, safersk)                                                  \
+  E(NOEKEON, noekeon)                                                  \
   E(RIJNDAEL, rijndael)                                                        \
+  E(RIJNDAEL192, rijndael192)                                          \
+  E(RIJNDAEL256, rijndael256)                                          \
   E(SERPENT, serpent)
 
 #define HASHES                                                         \
@@ -549,7 +582,11 @@ static grand *gen_bbs(unsigned i)
    */
 
   const char *mt =
-  "120511284390135742513572142094334711443073194119732569353820828435640527418092392240366088035509890969913081816369160298961490135716255689660470370755013177656905237112577648090277537209936078171554274553448103698084782669252936352843649980105109850503830397166360721262431179505917248447259735253684659338653";
+    "12051128439013574251357214209433471144307319411973256935382082"
+    "84356405274180923922403660880355098909699130818163691602989614"
+    "90135716255689660470370755013177656905237112577648090277537209"
+    "93607817155427455344810369808478266925293635284364998010510985"
+    "0503830397166360721262431179505917248447259735253684659338653";
 
   /* --- Other things --- */
 
@@ -727,7 +764,7 @@ static grand *gen_rand(unsigned i)
     switch (o) {
       case 'k':
        DRESET(&d);
-       textkey(&d, optarg, rmd160_mackeysz);
+       textkey(&d, optarg, rmd160_hmackeysz);
        r->ops->misc(r, RAND_KEY, d.buf, d.len);
        break;
       case 't':
@@ -735,7 +772,7 @@ static grand *gen_rand(unsigned i)
        break;
       case 'H':
        DRESET(&d);
-       hexkey(&d, optarg, rmd160_mackeysz);
+       hexkey(&d, optarg, rmd160_hmackeysz);
        r->ops->misc(r, GRAND_SEEDBLOCK, d.buf, d.len);
        break;
     }