aboutsummaryrefslogtreecommitdiff
path: root/src/hash/xor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash/xor.h')
-rw-r--r--src/hash/xor.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/hash/xor.h b/src/hash/xor.h
index f495c36..bd9aaed 100644
--- a/src/hash/xor.h
+++ b/src/hash/xor.h
@@ -1,3 +1,12 @@
#include "../lua.h"
+#include <stdint.h>
+/**
+ * calculates a xor hash of (len) bytes
+ *
+ * @param {uint8_t*} input bytes
+ * @param {size_t} input length
+ * @return {uint8_t} 8 bit checksum
+*/
+uint8_t xor8(uint8_t*, size_t);
int l_xor8(lua_State*);