diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-08-26 14:55:08 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-09-25 15:08:31 -0400 |
commit | 9e43ee5b4ca3650ecd9c4ee8a1b77843b273d480 (patch) | |
tree | 3f4d62dd70ad058e964f3ce7f7d17cae7f673aab /src/ext/ed25519/ref10/ed25519_ref10.h | |
parent | e0097a8839c9dc8e56a7304b84482155dccd0af0 (diff) | |
download | tor-9e43ee5b4ca3650ecd9c4ee8a1b77843b273d480.tar.gz tor-9e43ee5b4ca3650ecd9c4ee8a1b77843b273d480.zip |
Fix API for ed25519_ref10_open()
This is another case where DJB likes sticking the whole signature
prepended to the message, and I don't think that's the hottest idea.
The unit tests still pass.
Diffstat (limited to 'src/ext/ed25519/ref10/ed25519_ref10.h')
-rw-r--r-- | src/ext/ed25519/ref10/ed25519_ref10.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/ed25519/ref10/ed25519_ref10.h b/src/ext/ed25519/ref10/ed25519_ref10.h index 1f7946d04a..bd1e46133f 100644 --- a/src/ext/ed25519/ref10/ed25519_ref10.h +++ b/src/ext/ed25519/ref10/ed25519_ref10.h @@ -7,8 +7,8 @@ int ed25519_ref10_seckey(unsigned char *sk); 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( - unsigned char *m,uint64_t *mlen, - const unsigned char *sm,uint64_t smlen, + const unsigned char *signature, + const unsigned char *m,uint64_t mlen, const unsigned char *pk); int ed25519_ref10_sign( unsigned char *sig, |