aboutsummaryrefslogtreecommitdiff
path: root/src/crypto.h
diff options
context:
space:
mode:
authorame <[email protected]>2023-10-23 20:47:41 -0500
committerame <[email protected]>2023-10-23 20:47:41 -0500
commit1b7793a661227e36ed870976c8b73abb2e749113 (patch)
tree75a140c902cbf26bb4c78f710b903c5daee8a20e /src/crypto.h
parent8fc7bc2bbb27cf6ce1181fef78b9243d913b80c8 (diff)
sha1 & reorganizing
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/crypto.h b/src/crypto.h
index a62add2..be0683e 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -1,11 +1,15 @@
#include "lua.h"
#include "i_util.h"
+#include "hash/md5.h"
+#include "hash/sha01.h"
-int l_md5(lua_State*);
+unsigned i_lr(unsigned, unsigned);
static const luaL_Reg crypto_function_list [] = {
{"md5",l_md5},
-
+ {"sha0",l_sha0},
+ {"sha1",l_sha1},
+
{NULL,NULL}
};