util.hashes: Use defined hash function output lengths.

This commit is contained in:
Kim Alvefur 2012-05-09 01:26:56 +02:00
parent 79dfc716bd
commit ce764dee87

View file

@ -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[] =
{