summaryrefslogtreecommitdiff
path: root/twofish.h
diff options
context:
space:
mode:
Diffstat (limited to 'twofish.h')
-rw-r--r--twofish.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/twofish.h b/twofish.h
index 9a1e9bab..a21d0ec5 100644
--- a/twofish.h
+++ b/twofish.h
@@ -34,6 +34,10 @@
#include "nettle-types.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Name mangling */
#define twofish_set_key nettle_twofish_set_key
#define twofish_encrypt nettle_twofish_encrypt
@@ -67,4 +71,8 @@ twofish_decrypt(struct twofish_ctx *ctx,
unsigned length, uint8_t *dst,
const uint8_t *src);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* NETTLE_TWOFISH_H_INCLUDED */