hash: Fix signatures in the final callback defs

Signed-off-by: Anatol Belski <ab@php.net>
This commit is contained in:
Anatol Belski 2020-12-13 21:17:17 +01:00
parent 97d2dd0f90
commit 269a8841ae

View File

@ -121,7 +121,7 @@ PHP_HASH_API void PHP_MURMUR3CUpdate(PHP_MURMUR3C_CTX *ctx, const unsigned char
PMurHash128x86_Process(ctx->h, ctx->carry, in, len);
}
PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[4], PHP_MURMUR3C_CTX *ctx)
PHP_HASH_API void PHP_MURMUR3CFinal(unsigned char digest[16], PHP_MURMUR3C_CTX *ctx)
{
uint32_t h[4] = {0, 0, 0, 0};
PMurHash128x86_Result(ctx->h, ctx->carry, ctx->len, h);
@ -193,7 +193,7 @@ PHP_HASH_API void PHP_MURMUR3FUpdate(PHP_MURMUR3F_CTX *ctx, const unsigned char
PMurHash128x64_Process(ctx->h, ctx->carry, in, len);
}
PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[4], PHP_MURMUR3F_CTX *ctx)
PHP_HASH_API void PHP_MURMUR3FFinal(unsigned char digest[16], PHP_MURMUR3F_CTX *ctx)
{
uint64_t h[2] = {0, 0};
PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h);