From b8b5f8c7725d7431b82cb065b2b18891c1bc3fc9 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/loselose.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/hash/loselose.h') diff --git a/src/hash/loselose.h b/src/hash/loselose.h index 434b8cb..8ce1ed7 100644 --- a/src/hash/loselose.h +++ b/src/hash/loselose.h @@ -1,5 +1,17 @@ #include "../lua.h" #include +struct loselose_hash { + uint64_t hash; +}; + +struct loselose_hash loselose_init(); +void loselose_update(uint8_t*, size_t, struct loselose_hash*); +uint64_t loselose_final(struct loselose_hash*); + uint64_t loselose(uint8_t* in, size_t len); + int l_loselose(lua_State*); +int l_loselose_init(lua_State*); +int l_loselose_update(lua_State*); +int l_loselose_final(lua_State*); -- cgit v1.2.3