aboutsummaryrefslogtreecommitdiff
path: root/src/hash/sha2xx.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/sha2xx.h
parentd062e57c154b2bed76276d52681577028e859677 (diff)
header stuff
Diffstat (limited to 'src/hash/sha2xx.h')
-rw-r--r--src/hash/sha2xx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hash/sha2xx.h b/src/hash/sha2xx.h
index cfd64ac..a15aca6 100644
--- a/src/hash/sha2xx.h
+++ b/src/hash/sha2xx.h
@@ -4,5 +4,15 @@ enum version {
sha256, sha224
};
+/**
+ * calculates a sha2 hash of bytes
+ *
+ * @param {enum version} version to use
+ * @param {char*} output stream
+ * @param {char*} input bytes
+ * @return {void}
+*/
+void i_sha2xx(enum version, char* out_stream, char* input);
+
int l_sha256(lua_State*);
int l_sha224(lua_State*);