From dae9e34168b56a399b2b1e04e657e322b9c6f803 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 4 Apr 2024 10:06:53 -0500 Subject: all basic hash funcs --- src/hash/pjw.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/hash/pjw.h') diff --git a/src/hash/pjw.h b/src/hash/pjw.h index f1ab910..a4e36e7 100644 --- a/src/hash/pjw.h +++ b/src/hash/pjw.h @@ -1,5 +1,16 @@ #include "../lua.h" #include +struct pjw_hash { + uint32_t hash, high; +}; + +struct pjw_hash pjw_init(); +void pjw_update(uint8_t*, size_t, struct pjw_hash*); +uint32_t pjw_final(struct pjw_hash*); uint32_t pjw(uint8_t* in, size_t len); + int l_pjw(lua_State*); +int l_pjw_init(lua_State*); +int l_pjw_update(lua_State*); +int l_pjw_final(lua_State*); -- cgit v1.2.3