projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move the @mpmont_factor@ structure and rename it now that it's used for
[u/mdw/catacomb]
/
ghash-def.h
diff --git
a/ghash-def.h
b/ghash-def.h
index
74699ca
..
9065f5b
100644
(file)
--- a/
ghash-def.h
+++ b/
ghash-def.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: ghash-def.h,v 1.
4 2000/07/15 10:00
:58 mdw Exp $
+ * $Id: ghash-def.h,v 1.
5 2001/01/25 21:39
:58 mdw Exp $
*
* Definitions for generic hash interface
*
*
* Definitions for generic hash interface
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: ghash-def.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: ghash-def.h,v $
+ * Revision 1.5 2001/01/25 21:39:58 mdw
+ * Burn the hash context when it's done with, for paranoia's sake.
+ *
* Revision 1.4 2000/07/15 10:00:58 mdw
* New generic hash operation for copying hash contexts.
*
* Revision 1.4 2000/07/15 10:00:58 mdw
* New generic hash operation for copying hash contexts.
*
@@
-68,6
+71,10
@@
# include "ghash.h"
#endif
# include "ghash.h"
#endif
+#ifndef CATACOMB_PARANOIA_H
+# include "paranoia.h"
+#endif
+
/*----- Generic hash function interface -----------------------------------*/
/* --- @GHASH_DEF@ --- *
/*----- Generic hash function interface -----------------------------------*/
/* --- @GHASH_DEF@ --- *
@@
-113,6
+120,7
@@
static octet *ghdone(ghash *h, void *buf) \
static void ghdestroy(ghash *h) \
{ \
gctx *g = (gctx *)h; \
static void ghdestroy(ghash *h) \
{ \
gctx *g = (gctx *)h; \
+ BURN(*g); \
S_DESTROY(g); \
} \
\
S_DESTROY(g); \
} \
\