Twofish can handle keys with any byte-aligned size.
authormdw <mdw>
Thu, 22 Jun 2000 18:58:00 +0000 (18:58 +0000)
committermdw <mdw>
Thu, 22 Jun 2000 18:58:00 +0000 (18:58 +0000)
twofish.c

index 437a191..4ba4860 100644 (file)
--- a/twofish.c
+++ b/twofish.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: twofish.c,v 1.1 2000/06/17 12:10:17 mdw Exp $
+ * $Id: twofish.c,v 1.2 2000/06/22 18:58:00 mdw Exp $
  *
  * Implementation of the Twofish cipher
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: twofish.c,v $
+ * Revision 1.2  2000/06/22 18:58:00  mdw
+ * Twofish can handle keys with any byte-aligned size.
+ *
  * Revision 1.1  2000/06/17 12:10:17  mdw
  * New cipher.
  *
@@ -49,7 +52,7 @@
 
 /*----- Global variables --------------------------------------------------*/
 
-const octet twofish_keysz[] = { KSZ_RANGE, TWOFISH_KEYSZ, 4, 32, 4 };
+const octet twofish_keysz[] = { KSZ_RANGE, TWOFISH_KEYSZ, 0, 32, 1 };
 
 /*----- Important tables --------------------------------------------------*/