summaryrefslogtreecommitdiff
path: root/Crypto/Cast.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/Cast.h
Initial mirror commitHEADmaster
Diffstat (limited to 'Crypto/Cast.h')
-rw-r--r--Crypto/Cast.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/Crypto/Cast.h b/Crypto/Cast.h
new file mode 100644
index 0000000..57c1355
--- /dev/null
+++ b/Crypto/Cast.h
@@ -0,0 +1,24 @@
+/* Deprecated/legacy */
+
+
+#ifndef HEADER_CAST_H
+#define HEADER_CAST_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct CAST_KEY_STRUCT
+{
+ unsigned __int32 K[32];
+} CAST_KEY;
+
+void Cast5Decrypt (const byte *inBlock, byte *outBlock, CAST_KEY *key);
+void Cast5Encrypt (const byte *inBlock, byte *outBlock, CAST_KEY *key);
+void Cast5SetKey (CAST_KEY *key, unsigned int keylength, const byte *userKey);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif