VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/GostCipher.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-17 00:06:57 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-08-17 00:08:18 +0200
commit2780ac962ec75f548acb616dd810515e528ac0b1 (patch)
tree3c89dab46a6f225b8e2caf04a8d51c6a29b0e6f0 /src/Crypto/GostCipher.h
parente47f94cb4329cfefb0a9c4efaa353a1b54268b46 (diff)
downloadVeraCrypt-2780ac962ec75f548acb616dd810515e528ac0b1.tar.gz
VeraCrypt-2780ac962ec75f548acb616dd810515e528ac0b1.zip
Linux: fix various compilation issues under Linux.
Diffstat (limited to 'src/Crypto/GostCipher.h')
-rw-r--r--src/Crypto/GostCipher.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Crypto/GostCipher.h b/src/Crypto/GostCipher.h
index 35c6537c..40962073 100644
--- a/src/Crypto/GostCipher.h
+++ b/src/Crypto/GostCipher.h
@@ -12,6 +12,12 @@
#ifndef GOST_CIPHER_H
#define GOST_CIPHER_H
+#include "Common/Tcdefs.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
//In unsigned chars
#define GOST_KEYSIZE 32
#define GOST_BLOCKSIZE 8
@@ -27,7 +33,6 @@
#define rotl32(b, shift) ((b << shift) | (b >> (32 - shift)))
#endif
-typedef unsigned char byte;
#ifdef GST_WINDOWS_BOOT
typedef int gst_word;
typedef long gst_dword;
@@ -57,5 +62,9 @@ void gost_set_key(const byte *key, gost_kds *ks);
#define GOST_KS (0)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif