aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/ed25519/ed25519.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/ed25519/ed25519.h')
-rw-r--r--src/libcryptobox/ed25519/ed25519.h24
1 files changed, 18 insertions, 6 deletions
diff --git a/src/libcryptobox/ed25519/ed25519.h b/src/libcryptobox/ed25519/ed25519.h
index 0fbf7d6fe..a1f702c4a 100644
--- a/src/libcryptobox/ed25519/ed25519.h
+++ b/src/libcryptobox/ed25519/ed25519.h
@@ -20,15 +20,27 @@
#include <stdbool.h>
#include <stddef.h>
-const char* ed25519_load (void);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const char *ed25519_load (void);
+
void ed25519_keypair (unsigned char *pk, unsigned char *sk);
+
void ed25519_seed_keypair (unsigned char *pk, unsigned char *sk, unsigned char *seed);
+
void ed25519_sign (unsigned char *sig, size_t *siglen_p,
- const unsigned char *m, size_t mlen,
- const unsigned char *sk);
+ const unsigned char *m, size_t mlen,
+ const unsigned char *sk);
+
bool ed25519_verify (const unsigned char *sig,
- const unsigned char *m,
- size_t mlen,
- const unsigned char *pk);
+ const unsigned char *m,
+ size_t mlen,
+ const unsigned char *pk);
+
+#ifdef __cplusplus
+}
+#endif
#endif /* SRC_LIBCRYPTOBOX_ED25519_ED25519_H_ */