diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-09-25 15:03:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 15:08:32 -0400 |
commit | 46cda485bce60894d3128dcd42831a8c6cc7bcb4 (patch) | |
tree | d275ffaf6c369520474a34a10d287840d823b5aa /src/ext/ed25519/ref10/open.c | |
parent | 6dbd451b9f7542b16f64415a57a1af26723f8645 (diff) | |
download | tor-46cda485bce60894d3128dcd42831a8c6cc7bcb4.tar.gz tor-46cda485bce60894d3128dcd42831a8c6cc7bcb4.zip |
Comments and tweaks based on review by asn
Add some documentation
Rename "derive" -> "blind"
Check for failure on randombytes().
Diffstat (limited to 'src/ext/ed25519/ref10/open.c')
-rw-r--r-- | src/ext/ed25519/ref10/open.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/open.c b/src/ext/ed25519/ref10/open.c index 790f668f94..0e7abba138 100644 --- a/src/ext/ed25519/ref10/open.c +++ b/src/ext/ed25519/ref10/open.c @@ -1,3 +1,4 @@ +/* (Modified by Tor to verify signature separately from message) */ #include <string.h> #include "crypto_sign.h" #include "crypto_hash_sha512.h" @@ -5,6 +6,7 @@ #include "ge.h" #include "sc.h" +/* 'signature' must be 64-bytes long. */ int crypto_sign_open( const unsigned char *signature, const unsigned char *m,uint64_t mlen, |