cc-hash.c: New file containing hash-related code from hashsum and dsig.
[u/mdw/catacomb] / rc2.c
diff --git a/rc2.c b/rc2.c
index be158f8..8241c06 100644 (file)
--- a/rc2.c
+++ b/rc2.c
@@ -1,13 +1,13 @@
 /* -*-c-*-
  *
- * $Id: rc2.c,v 1.2 2001/04/29 17:39:52 mdw Exp $
+ * $Id: rc2.c,v 1.3 2004/04/08 01:36:15 mdw Exp $
  *
  * The RC2 block cipher
  *
  * (c) 2000 Straylight/Edgeware
  */
 
-/*----- Licensing notice --------------------------------------------------* 
+/*----- Licensing notice --------------------------------------------------*
  *
  * This file is part of Catacomb.
  *
  * it under the terms of the GNU Library General Public License as
  * published by the Free Software Foundation; either version 2 of the
  * License, or (at your option) any later version.
- * 
+ *
  * Catacomb is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Library General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU Library General Public
  * License along with Catacomb; if not, write to the Free
  * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
  * MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: rc2.c,v $
- * Revision 1.2  2001/04/29 17:39:52  mdw
- * Moved big horrible table to a separate header.
- *
- * Revision 1.1  2000/06/17 11:54:34  mdw
- * New cipher.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include <assert.h>
@@ -293,7 +282,7 @@ static int verify(dstr *v)
   if (memcmp(b.buf, v[3].buf, RC2_BLKSZ)) {
     ok = 0;
     printf("\nfail encryption:"
-           "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
     printf("\n\tbraindamage= %u", bd);
     printf("\n\tplaintext  = "); type_hex.dump(&v[2], stdout);
@@ -310,7 +299,7 @@ static int verify(dstr *v)
   if (memcmp(b.buf, v[2].buf, RC2_BLKSZ)) {
     ok = 0;
     printf("\nfail decryption:"
-           "\n\tkey        = ");
+          "\n\tkey        = ");
     type_hex.dump(&v[0], stdout);
     printf("\n\tbraindamage= %u", bd);
     printf("\n\tciphertext = "); type_hex.dump(&v[3], stdout);