X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/eeccf7a8e367658a05c437b9aee14026a1706535..7d5a856ef5b3f27ffa8a5c0765f6677313e90ab4:/tiger.c diff --git a/tiger.c b/tiger.c index fb75937..87f3ca9 100644 --- a/tiger.c +++ b/tiger.c @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: tiger.c,v 1.1 2000/07/15 10:02:43 mdw Exp $ + * $Id: tiger.c,v 1.2 2004/04/08 01:36:15 mdw Exp $ * * The Tiger hash function * * (c) 2000 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,26 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * Catacomb is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with Catacomb; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: tiger.c,v $ - * Revision 1.1 2000/07/15 10:02:43 mdw - * Anderson and Biham's Tiger hash function added. - * - */ - /*----- Header files ------------------------------------------------------*/ #include @@ -105,8 +97,8 @@ void tiger_init(tiger_ctx *ctx) void tiger_set(tiger_ctx *ctx, const void *buf, unsigned long count) { const octet *p = buf; - LOAD64_L_(ctx->a, p + 0); - LOAD64_L_(ctx->b, p + 8); + LOAD64_L_(ctx->a, p + 0); + LOAD64_L_(ctx->b, p + 8); LOAD64_L_(ctx->c, p + 16); ctx->off = 0; ctx->nl = U32(count);