aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/curve25519/curve25519.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/curve25519/curve25519.h')
-rw-r--r--src/libcryptobox/curve25519/curve25519.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libcryptobox/curve25519/curve25519.h b/src/libcryptobox/curve25519/curve25519.h
index 8b404f5c6..c75c355f8 100644
--- a/src/libcryptobox/curve25519/curve25519.h
+++ b/src/libcryptobox/curve25519/curve25519.h
@@ -3,11 +3,21 @@
#include "config.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
static const guchar curve25519_basepoint[32] = {9};
int curve25519 (guchar *mypublic, const guchar *secret, const guchar *basepoint);
+
/* Call for optimized implementation of scalarmult if needed */
int curve25519_base (guchar *mypublic, const guchar *secret);
-const char* curve25519_load (void);
+
+const char *curve25519_load (void);
+
+#ifdef __cplusplus
+}
+#endif
#endif