VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Blowfish.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/Blowfish.h
downloadVeraCrypt-c606f0866c3a2a5db3ef9bc41738ef33eb9612a9.tar.gz
VeraCrypt-c606f0866c3a2a5db3ef9bc41738ef33eb9612a9.zip
Add original TrueCrypt 7.1a sources
Diffstat (limited to 'src/Crypto/Blowfish.h')
-rw-r--r--src/Crypto/Blowfish.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Crypto/Blowfish.h b/src/Crypto/Blowfish.h
new file mode 100644
index 00000000..d9cf4bc5
--- /dev/null
+++ b/src/Crypto/Blowfish.h
@@ -0,0 +1,25 @@
+/* Deprecated/legacy */
+
+
+#ifndef TC_HEADER_Crypto_Blowfish
+#define TC_HEADER_Crypto_Blowfish
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct BF_KEY_STRUCT
+{
+ unsigned __int32 pbox[18];
+ unsigned __int32 pbox_dec[18];
+ unsigned __int32 sbox[4*256];
+} BF_KEY;
+
+void BlowfishSetKey (BF_KEY *key, int keylength, unsigned char *key_string);
+void BlowfishEncryptLE (unsigned char *in, unsigned char *out, BF_KEY *ks, int encrypt);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // TC_HEADER_Crypto_Blowfish