mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
hash: Fix signatures in the final callback defs
Signed-off-by: Anatol Belski <ab@php.net>
This commit is contained in:
parent
97d2dd0f90
commit
269a8841ae
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
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};
|
uint32_t h[4] = {0, 0, 0, 0};
|
||||||
PMurHash128x86_Result(ctx->h, ctx->carry, ctx->len, h);
|
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);
|
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};
|
uint64_t h[2] = {0, 0};
|
||||||
PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h);
|
PMurHash128x64_Result(ctx->h, ctx->carry, ctx->len, h);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue