summaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/ed25519_ref10.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-25 15:11:34 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-25 15:11:34 -0400
commit1c5d680b3d6734e989a92deedbcf2bb46f31f7f9 (patch)
tree9095ef06917bd77ce7581560de56872ef8f8ead7 /src/ext/ed25519/ref10/ed25519_ref10.h
parent50d15e06b32ce743ac4da532f29abb3781c4b990 (diff)
parent46cda485bce60894d3128dcd42831a8c6cc7bcb4 (diff)
downloadtor-1c5d680b3d6734e989a92deedbcf2bb46f31f7f9.tar.gz
tor-1c5d680b3d6734e989a92deedbcf2bb46f31f7f9.zip
Merge branch 'ed25519_ref10_squashed'
Conflicts: src/common/include.am src/ext/README
Diffstat (limited to 'src/ext/ed25519/ref10/ed25519_ref10.h')
-rw-r--r--src/ext/ed25519/ref10/ed25519_ref10.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/ed25519_ref10.h b/src/ext/ed25519/ref10/ed25519_ref10.h
new file mode 100644
index 0000000000..8c77b0e56b
--- /dev/null
+++ b/src/ext/ed25519/ref10/ed25519_ref10.h
@@ -0,0 +1,30 @@
+/* Added for Tor */
+#ifndef SRC_EXT_ED25519_REF10_H_INCLUDED_
+#define SRC_EXT_ED25519_REF10_H_INCLUDED_
+#include <torint.h>
+
+int ed25519_ref10_seckey(unsigned char *sk);
+int ed25519_ref10_seckey_expand(unsigned char *sk, const unsigned char *sk_seed);
+int ed25519_ref10_pubkey(unsigned char *pk,const unsigned char *sk);
+int ed25519_ref10_keygen(unsigned char *pk,unsigned char *sk);
+int ed25519_ref10_open(
+ const unsigned char *signature,
+ const unsigned char *m,uint64_t mlen,
+ const unsigned char *pk);
+int ed25519_ref10_sign(
+ unsigned char *sig,
+ const unsigned char *m,uint64_t mlen,
+ const unsigned char *sk, const unsigned char *pk);
+
+/* Added in Tor */
+int ed25519_ref10_pubkey_from_curve25519_pubkey(unsigned char *out,
+ const unsigned char *inp,
+ int signbit);
+int ed25519_ref10_blind_secret_key(unsigned char *out,
+ const unsigned char *inp,
+ const unsigned char *param);
+int ed25519_ref10_blind_public_key(unsigned char *out,
+ const unsigned char *inp,
+ const unsigned char *param);
+
+#endif