summaryrefslogtreecommitdiff
path: root/libs/libsignal/src/curve25519/ed25519/additions/curve_sigs.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libsignal/src/curve25519/ed25519/additions/curve_sigs.h')
-rw-r--r--libs/libsignal/src/curve25519/ed25519/additions/curve_sigs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libs/libsignal/src/curve25519/ed25519/additions/curve_sigs.h b/libs/libsignal/src/curve25519/ed25519/additions/curve_sigs.h
new file mode 100644
index 0000000000..a2d819aef0
--- /dev/null
+++ b/libs/libsignal/src/curve25519/ed25519/additions/curve_sigs.h
@@ -0,0 +1,17 @@
+
+#ifndef __CURVE_SIGS_H__
+#define __CURVE_SIGS_H__
+
+/* returns 0 on success */
+int curve25519_sign(unsigned char* signature_out, /* 64 bytes */
+ const unsigned char* curve25519_privkey, /* 32 bytes */
+ const unsigned char* msg, const unsigned long msg_len, /* <= 256 bytes */
+ const unsigned char* random); /* 64 bytes */
+
+/* returns 0 on success */
+int curve25519_verify(const unsigned char* signature, /* 64 bytes */
+ const unsigned char* curve25519_pubkey, /* 32 bytes */
+ const unsigned char* msg, const unsigned long msg_len); /* <= 256 bytes */
+
+
+#endif