From: mdw Date: Thu, 25 Jan 2001 21:40:14 +0000 (+0000) Subject: Support for new SHA variants added. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/87ffb3aef4624c550c207cc638af4b466698c0f3 Support for new SHA variants added. --- diff --git a/hashsum.c b/hashsum.c index 5776d93..35e35fb 100644 --- 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. @@ -77,12 +80,18 @@ #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 };