aboutsummaryrefslogtreecommitdiff
path: root/src/hash/loselose.h
diff options
context:
space:
mode:
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*);