Support for new SHA variants added.
authormdw <mdw>
Thu, 25 Jan 2001 21:40:14 +0000 (21:40 +0000)
committermdw <mdw>
Thu, 25 Jan 2001 21:40:14 +0000 (21:40 +0000)
hashsum.c

index 5776d93..35e35fb 100644 (file)
--- a/hashsum.c
+++ b/hashsum.c
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: hashsum.c,v 1.5 2000/12/06 20:33:27 mdw Exp $
+ * $Id: hashsum.c,v 1.6 2001/01/25 21:40:14 mdw Exp $
  *
  * Hash files using some secure hash function
  *
@@ -30,6 +30,9 @@
 /*----- Revision history --------------------------------------------------* 
  *
  * $Log: hashsum.c,v $
+ * Revision 1.6  2001/01/25 21:40:14  mdw
+ * Support for new SHA variants added.
+ *
  * Revision 1.5  2000/12/06 20:33:27  mdw
  * Make flags be macros rather than enumerations, to ensure that they're
  * unsigned.
 #include "rmd256.h"
 #include "rmd320.h"
 #include "sha.h"
+#include "sha256.h"
+#include "sha384.h"
+#include "sha512.h"
 #include "tiger.h"
 
 /*----- Static variables --------------------------------------------------*/
 
 static const gchash *hashtab[] = {
-  &md5, &md4, &sha, &rmd128, &rmd160, &rmd256, &rmd320, &tiger,
+  &md5, &md4,
+  &sha, &sha256, &sha384, &sha512,
+  &rmd128, &rmd160, &rmd256, &rmd320,
+  &tiger,
   0
 };