VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Des.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Crypto/Des.h')
-rw-r--r--src/Crypto/Des.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Crypto/Des.h b/src/Crypto/Des.h
new file mode 100644
index 0000000..5fc2633
--- /dev/null
+++ b/src/Crypto/Des.h
@@ -0,0 +1,28 @@
+/* Deprecated/legacy */
+
+
+#ifndef HEADER_Crypto_DES
+#define HEADER_Crypto_DES
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct TRIPLE_DES_KEY_STRUCT
+{
+ unsigned __int32 k1[32];
+ unsigned __int32 k2[32];
+ unsigned __int32 k3[32];
+ unsigned __int32 k1d[32];
+ unsigned __int32 k2d[32];
+ unsigned __int32 k3d[32];
+} TDES_KEY;
+
+void TripleDesEncrypt (byte *inBlock, byte *outBlock, TDES_KEY *key, int encrypt);
+void TripleDesSetKey (const byte *userKey, unsigned int length, TDES_KEY *ks);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // HEADER_Crypto_DES