projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't use @va_arg@ as an argument to @STORE32@!
[u/mdw/catacomb]
/
hashsum.c
diff --git
a/hashsum.c
b/hashsum.c
index
5776d93
..
0776ee8
100644
(file)
--- a/
hashsum.c
+++ b/
hashsum.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: hashsum.c,v 1.
5 2000/12/06 20:33:27
mdw Exp $
+ * $Id: hashsum.c,v 1.
7 2001/02/21 20:03:22
mdw Exp $
*
* Hash files using some secure hash function
*
*
* Hash files using some secure hash function
*
@@
-30,6
+30,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: hashsum.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: hashsum.c,v $
+ * Revision 1.7 2001/02/21 20:03:22 mdw
+ * Added support for MD2 hash function.
+ *
+ * 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.
* Revision 1.5 2000/12/06 20:33:27 mdw
* Make flags be macros rather than enumerations, to ensure that they're
* unsigned.
@@
-70,6
+76,7
@@
#include "ghash.h"
#include "ghash.h"
+#include "md2.h"
#include "md4.h"
#include "md5.h"
#include "rmd128.h"
#include "md4.h"
#include "md5.h"
#include "rmd128.h"
@@
-77,12
+84,18
@@
#include "rmd256.h"
#include "rmd320.h"
#include "sha.h"
#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[] = {
#include "tiger.h"
/*----- Static variables --------------------------------------------------*/
static const gchash *hashtab[] = {
- &md5, &md4, &sha, &rmd128, &rmd160, &rmd256, &rmd320, &tiger,
+ &md5, &md4, &md2,
+ &sha, &sha256, &sha384, &sha512,
+ &rmd128, &rmd160, &rmd256, &rmd320,
+ &tiger,
0
};
0
};