Skip to content

Commit

Permalink
add HashTable *args
Browse files Browse the repository at this point in the history
.. don't know what I'm supposed to do with it, but compiler complains about it missing.
  • Loading branch information
divinity76 committed Jan 19, 2024
1 parent 187c8e9 commit 14cd419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ext/hash/hash_blake3.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#include "blake3/upstream_blake3/c/blake3.h"
#include <string.h> // memcpy

PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context)
PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context, HashTable *args)
{
(void)args; // ¯\_(ツ)_/¯
blake3_hasher_init(context);
}

Expand Down
2 changes: 1 addition & 1 deletion ext/hash/php_hash_blake3.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//#define PHP_BLAKE3_SPEC "b8b8qb64bbbbb1760"
#define PHP_BLAKE3_SPEC "L8L8Qa64CCCCL8Ca1760"

PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context);
PHP_HASH_API void PHP_BLAKE3Init(PHP_BLAKE3_CTX *context, HashTable *args);
PHP_HASH_API void PHP_BLAKE3Update(PHP_BLAKE3_CTX *context, const unsigned char *input, size_t len);
PHP_HASH_API void PHP_BLAKE3Final(unsigned char digest[BLAKE3_OUT_LEN/*32*/], PHP_BLAKE3_CTX *context);
PHP_HASH_API int PHP_BLAKE3Copy(const php_hash_ops *ops, PHP_BLAKE3_CTX *orig_context, PHP_BLAKE3_CTX *copy_context);
Expand Down

0 comments on commit 14cd419

Please sign in to comment.