aboutsummaryrefslogtreecommitdiff
path: root/src/hash/loselose.h
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-04 10:06:53 -0500
committerame <[email protected]>2024-04-04 10:06:53 -0500
commitb8b5f8c7725d7431b82cb065b2b18891c1bc3fc9 (patch)
tree174eef159441750b71e720d6639b9b221502fd1c /src/hash/loselose.h
parentcb280d5d1816ddbe0587775def896ab9c237bc4f (diff)
all basic hash funcs
Diffstat (limited to 'src/hash/loselose.h')
-rw-r--r--src/hash/loselose.h12
1 files changed, 12 insertions, 0 deletions
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 <stdint.h>
+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*);