From 2780ac962ec75f548acb616dd810515e528ac0b1 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 17 Aug 2016 00:06:57 +0200 Subject: Linux: fix various compilation issues under Linux. --- src/Crypto/kuznyechik.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Crypto/kuznyechik.h') 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 -- cgit v1.2.3