aboutsummaryrefslogtreecommitdiff
path: root/src/hash/bsdchecksum.h
diff options
context:
space:
mode:
authorame <[email protected]>2023-11-06 20:08:48 -0600
committerame <[email protected]>2023-11-06 20:08:48 -0600
commit4fc59207afdf442cd769992339b7fdea0ff2a2b8 (patch)
tree82df02dd802224f330470b2479afe24af14b3527 /src/hash/bsdchecksum.h
parentd062e57c154b2bed76276d52681577028e859677 (diff)
header stuff
Diffstat (limited to 'src/hash/bsdchecksum.h')
-rw-r--r--src/hash/bsdchecksum.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hash/bsdchecksum.h b/src/hash/bsdchecksum.h
index 2ad11e4..8e41893 100644
--- a/src/hash/bsdchecksum.h
+++ b/src/hash/bsdchecksum.h
@@ -1,3 +1,13 @@
#include "../lua.h"
+#include <stdint.h>
+
+/**
+ * calculates a bsdchecksum of (len) bytes
+ *
+ * @param {uint8_t*} input bytes
+ * @param {size_t} input length
+ * @return {uint16_t} 16 bit checksum
+*/
+uint16_t i_bsdchecksum(uint8_t*, size_t);
int l_bsdchecksum(lua_State*);