X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/d2fdbc2cead4a72c64c16eede2ba39d5496ce1a6..2685767a6125c1620719c7de6234aedf41857b7e:/ghash-def.h diff --git a/ghash-def.h b/ghash-def.h index 74699ca..9065f5b 100644 --- a/ghash-def.h +++ b/ghash-def.h @@ -1,6 +1,6 @@ /* -*-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 * @@ -30,6 +30,9 @@ /*----- 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. * @@ -68,6 +71,10 @@ # include "ghash.h" #endif +#ifndef CATACOMB_PARANOIA_H +# include "paranoia.h" +#endif + /*----- 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; \ + BURN(*g); \ S_DESTROY(g); \ } \ \