VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/kuznyechik.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/kuznyechik.h
parente47f94cb4329cfefb0a9c4efaa353a1b54268b46 (diff)
downloadVeraCrypt-2780ac962ec75f548acb616dd810515e528ac0b1.tar.gz
VeraCrypt-2780ac962ec75f548acb616dd810515e528ac0b1.zip
Linux: fix various compilation issues under Linux.
Diffstat (limited to 'src/Crypto/kuznyechik.h')
-rw-r--r--src/Crypto/kuznyechik.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Crypto/kuznyechik.h b/src/Crypto/kuznyechik.h
index ad67f957..79ca539b 100644
--- a/src/Crypto/kuznyechik.h
+++ b/src/Crypto/kuznyechik.h
@@ -10,6 +10,10 @@ and released into public domain.
#include "Common/Tcdefs.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct _kuznyechik_kds
{
uint64 rke[10][2];
@@ -22,5 +26,8 @@ void kuznyechik_encrypt_block(byte* out, const byte* in, kuznyechik_kds* kds);
void kuznyechik_decrypt_block(byte* out, const byte* in, kuznyechik_kds* kds);
void kuznyechik_set_key(const byte* key, kuznyechik_kds *kds);
+#ifdef __cplusplus
+}
+#endif
#endif