VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Cast.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2013-06-22 16:16:13 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:18:07 +0100
commitc606f0866c3a2a5db3ef9bc41738ef33eb9612a9 (patch)
tree5847c644cdfff3c1dd55b88b565448087ae89f11 /src/Crypto/Cast.h
downloadVeraCrypt-c606f0866c3a2a5db3ef9bc41738ef33eb9612a9.tar.gz
VeraCrypt-c606f0866c3a2a5db3ef9bc41738ef33eb9612a9.zip
Add original TrueCrypt 7.1a sources
Diffstat (limited to 'src/Crypto/Cast.h')
-rw-r--r--src/Crypto/Cast.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Crypto/Cast.h b/src/Crypto/Cast.h
new file mode 100644
index 00000000..5c744494
--- /dev/null
+++ b/src/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