summaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/ed25519_ref10.h
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2017-04-25 15:19:41 +0300
committerNick Mathewson <nickm@torproject.org>2017-06-27 17:17:58 -0400
commit559658ff1ca1492543ad60d10b7101c70a62eaa2 (patch)
treeaff61610becaeb0ae6702277907f7f2cace9f483 /src/ext/ed25519/ref10/ed25519_ref10.h
parent39b5dca7201bb3f30606be199f4d234c86fcaded (diff)
downloadtor-559658ff1ca1492543ad60d10b7101c70a62eaa2.tar.gz
tor-559658ff1ca1492543ad60d10b7101c70a62eaa2.zip
ed25519: Add func that checks for torsion component in pubkeys.
See https://lists.torproject.org/pipermail/tor-dev/2017-April/012213.html .
Diffstat (limited to 'src/ext/ed25519/ref10/ed25519_ref10.h')
-rw-r--r--src/ext/ed25519/ref10/ed25519_ref10.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/ed25519_ref10.h b/src/ext/ed25519/ref10/ed25519_ref10.h
index af7e21a2ad..5965694977 100644
--- a/src/ext/ed25519/ref10/ed25519_ref10.h
+++ b/src/ext/ed25519/ref10/ed25519_ref10.h
@@ -27,4 +27,8 @@ int ed25519_ref10_blind_public_key(unsigned char *out,
const unsigned char *inp,
const unsigned char *param);
+int
+ed25519_ref10_scalarmult_with_group_order(unsigned char *out,
+ const unsigned char *pubkey);
+
#endif