From 5bcd964506d4a5a7a50ed902fe6f6caaad1b5b48 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 9 May 2012 01:26:56 +0200 Subject: util.hashes: Use defined hash function output lengths. --- util-src/hashes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util-src') diff --git a/util-src/hashes.c b/util-src/hashes.c index 33a9be89..7d263a78 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -46,9 +46,9 @@ static int myFunc(lua_State *L) { \ return 1; \ } -MAKE_HASH_FUNCTION(Lsha1, SHA1, 20) -MAKE_HASH_FUNCTION(Lsha256, SHA256, 32) -MAKE_HASH_FUNCTION(Lmd5, MD5, 16) +MAKE_HASH_FUNCTION(Lsha1, SHA1, SHA_DIGEST_LENGTH) +MAKE_HASH_FUNCTION(Lsha256, SHA256, SHA256_DIGEST_LENGTH) +MAKE_HASH_FUNCTION(Lmd5, MD5, MD5_DIGEST_LENGTH) static const luaL_Reg Reg[] = { -- cgit v1.2.3