progs/perftest.c: Use from Glibc syscall numbers.
[catacomb] / symm / tiger.c
index f9aa824..4889660 100644 (file)
 #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@ --- *