aboutsummaryrefslogtreecommitdiffstats
path: root/obfuscator/keccak-tiny/keccak-tiny.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--obfuscator/keccak-tiny/keccak-tiny.h23
-rw-r--r--obfuscator/keccak-tiny/keccak-tiny.hpp4
2 files changed, 27 insertions, 0 deletions
diff --git a/obfuscator/keccak-tiny/keccak-tiny.h b/obfuscator/keccak-tiny/keccak-tiny.h
new file mode 100644
index 0000000..e914b96
--- /dev/null
+++ b/obfuscator/keccak-tiny/keccak-tiny.h
@@ -0,0 +1,23 @@
+#ifndef KECCAK_FIPS202_H
+#define KECCAK_FIPS202_H
+#define __STDC_WANT_LIB_EXT1__ 1
+#include <stdint.h>
+#include <stdlib.h>
+
+#ifndef __STDC_LIB_EXT1__
+#define memset_s(W,WL,V,OL) memset(W,V,OL)
+#endif
+
+#define decshake(bits) \
+ int shake##bits(uint8_t*, size_t, const uint8_t*, size_t);
+
+#define decsha3(bits) \
+ int sha3_##bits(uint8_t*, size_t, const uint8_t*, size_t);
+
+decshake(128)
+decshake(256)
+decsha3(224)
+decsha3(256)
+decsha3(384)
+decsha3(512)
+#endif
diff --git a/obfuscator/keccak-tiny/keccak-tiny.hpp b/obfuscator/keccak-tiny/keccak-tiny.hpp
new file mode 100644
index 0000000..fe9ab4c
--- /dev/null
+++ b/obfuscator/keccak-tiny/keccak-tiny.hpp
@@ -0,0 +1,4 @@
+
+extern "C" {
+#include "keccak-tiny.h"
+}