summaryrefslogtreecommitdiff
path: root/Crypto/Serpent.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:27:03 +1200
committerJedidiah Barber <contact@jedbarber.id.au>2021-07-14 11:27:03 +1200
commit3cb7fdea950dd2d0377f0d9ad8a88fcb7c48b842 (patch)
treecedbfc08a6bf0bd8cb6ec6c8d8dd94a4e715439b /Crypto/Serpent.h
Initial mirror commitHEADmaster
Diffstat (limited to 'Crypto/Serpent.h')
-rw-r--r--Crypto/Serpent.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Crypto/Serpent.h b/Crypto/Serpent.h
new file mode 100644
index 0000000..47d35f8
--- /dev/null
+++ b/Crypto/Serpent.h
@@ -0,0 +1,19 @@
+#ifndef HEADER_Crypto_Serpent
+#define HEADER_Crypto_Serpent
+
+#include "Common/Tcdefs.h"
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+void serpent_set_key(const unsigned __int8 userKey[], int keylen, unsigned __int8 *ks);
+void serpent_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
+void serpent_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HEADER_Crypto_Serpent