X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0f00dc4c8eb47e67bc0f148c2dd109f73a451e0a..HEAD:/symm/tiger.c diff --git a/symm/tiger.c b/symm/tiger.c index f9aa8243..48896602 100644 --- a/symm/tiger.c +++ b/symm/tiger.c @@ -32,12 +32,11 @@ #include "ghash-def.h" #include "hash.h" #include "tiger.h" -#include "tiger-tab.h" #include "tiger-base.h" /*----- S-boxes -----------------------------------------------------------*/ -static const kludge64 s[4][256] = TIGER_S; +extern const kludge64 tiger_s[4][256]; /*----- Main code ---------------------------------------------------------*/ @@ -100,7 +99,7 @@ void tiger_set(tiger_ctx *ctx, const void *buf, unsigned long count) LOAD64_L_(ctx->c, p + 16); ctx->off = 0; ctx->nl = U32(count); - ctx->nh = U32(((count & ~MASK32) >> 16) >> 16); + ctx->nh = U32(((count & ~(unsigned long)MASK32) >> 16) >> 16); } /* --- @tiger_hash@ --- *