diff options
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/ed25519/ref10/ed25519_ref10.h | 4 | ||||
-rw-r--r-- | src/ext/ed25519/ref10/open.c | 2 | ||||
-rw-r--r-- | src/ext/ed25519/ref10/sign.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/ext/ed25519/ref10/ed25519_ref10.h b/src/ext/ed25519/ref10/ed25519_ref10.h index 8c77b0e56b..af7e21a2ad 100644 --- a/src/ext/ed25519/ref10/ed25519_ref10.h +++ b/src/ext/ed25519/ref10/ed25519_ref10.h @@ -9,11 +9,11 @@ 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 *m, size_t mlen, const unsigned char *pk); int ed25519_ref10_sign( unsigned char *sig, - const unsigned char *m,uint64_t mlen, + const unsigned char *m, size_t mlen, const unsigned char *sk, const unsigned char *pk); /* Added in Tor */ diff --git a/src/ext/ed25519/ref10/open.c b/src/ext/ed25519/ref10/open.c index 0e7abba138..9dbeb4cdd0 100644 --- a/src/ext/ed25519/ref10/open.c +++ b/src/ext/ed25519/ref10/open.c @@ -9,7 +9,7 @@ /* 'signature' must be 64-bytes long. */ int crypto_sign_open( const unsigned char *signature, - const unsigned char *m,uint64_t mlen, + const unsigned char *m, size_t mlen, const unsigned char *pk ) { diff --git a/src/ext/ed25519/ref10/sign.c b/src/ext/ed25519/ref10/sign.c index e37b0d192d..1190a0fc99 100644 --- a/src/ext/ed25519/ref10/sign.c +++ b/src/ext/ed25519/ref10/sign.c @@ -7,7 +7,7 @@ int crypto_sign( unsigned char *sig, - const unsigned char *m,uint64_t mlen, + const unsigned char *m, size_t mlen, const unsigned char *sk,const unsigned char *pk ) { |