aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.h
diff options
context:
space:
mode:
authorame <[email protected]>2023-11-17 10:10:47 -0600
committerame <[email protected]>2023-11-17 10:10:47 -0600
commit7eb07ccdca178abffe5ffccf686b4f818db3601d (patch)
tree4b265eb0e9f7b1666be24cac3b9d27a6b343fbb4 /src/crypto.h
parent829ad28a66fae082f8d2e8df27164b52592a5ee6 (diff)
tons of hashes bleh
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/crypto.h b/src/crypto.h
index f54047b..79be3df 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -11,12 +11,29 @@
#include "hash/fletcher.h"
#include "hash/sysvchecksum.h"
#include "hash/xor.h"
+#include "hash/buzhash.h"
+#include "hash/cityhash.h"
+#include "hash/djb2.h"
+#include "hash/farmhash.h"
+#include "hash/fasthash.h"
+#include "hash/fnv.h"
+#include "hash/jenkins.h"
+#include "hash/loselose.h"
+#include "hash/metrohash.h"
+#include "hash/murmur.h"
+#include "hash/pjw.h"
+#include "hash/sdbm.h"
+#include "hash/sha2-256.h"
+#include "hash/spookyhash.h"
#include "encode/uuencode.h"
#include "encode/base64.h"
unsigned i_lr(unsigned, unsigned);
unsigned i_rr(unsigned, unsigned);
+uint64_t i_lr64(uint64_t, uint64_t);
+uint64_t i_rr64(uint64_t, uint64_t);
+
static const luaL_Reg crypto_function_list [] = {
{"md5",l_md5},
@@ -38,6 +55,41 @@ static const luaL_Reg crypto_function_list [] = {
{"fletcher32",l_fletcher32},
{"sysvchecksum",l_sysvchecksum},
{"xor8",l_xor8},
+ {"setbuzhash",l_setbuzhash},
+ {"buzhash8",l_buzhash8},
+ {"buzhash16",l_buzhash16},
+ {"cityhash32", l_cityhash32},
+ {"cityhash64", l_cityhash64},
+ {"cityhash128", l_cityhash128},
+ {"djb2", l_djb2},
+ {"farmhash32", l_farmhash32},
+ {"farmhash64", l_farmhash64},
+ {"fasthash32", l_fasthash32},
+ {"fasthash64", l_fasthash64},
+ {"fnv_0", l_fnv_0},
+ {"fnv_1", l_fnv_1},
+ {"fnv_a", l_fnv_a},
+ {"oaat", l_oaat},
+ {"loselose", l_loselose},
+ {"metrohash64_v1", l_metrohash64_v1},
+ {"metrohash64_v2", l_metrohash64_v2},
+ {"metrohash128_v1", l_metrohash128_v1},
+ {"metrohash128_v2", l_metrohash128_v2},
+ {"murmur1_32", l_murmur1_32},
+ {"murmur2_32", l_murmur2_32},
+ {"pjw", l_pjw},
+ {"sdbm", l_sdbm},
+ {"sha512", l_sha512},
+ {"sha384", l_sha384},
+ {"sha512_t", l_sha512_t},
+ {"spookyhash128_v1", l_spookyhash128_v1},
+ {"spookyhash128_v2", l_spookyhash128_v2},
+ {"spookyhash64_v1", l_spookyhash64_v1},
+ {"spookyhash64_v2", l_spookyhash64_v2},
+ {"spookyhash32_v1", l_spookyhash32_v1},
+ {"spookyhash32_v2", l_spookyhash32_v2},
+
+
{"uuencode",l_uuencode},
{"uudecode",l_uudecode},