From: mdw Date: Thu, 25 Jan 2001 21:39:58 +0000 (+0000) Subject: Burn the hash context when it's done with, for paranoia's sake. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/f80463acf24d8b03275bd57f3473e32551a0497a Burn the hash context when it's done with, for paranoia's sake. --- 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); \ } \ \