diff options
-rw-r--r-- | src/ext/ed25519/ref10/ge_scalarmult_base.c | 2 | ||||
-rw-r--r-- | src/ext/ed25519/ref10/open.c | 4 | ||||
-rw-r--r-- | src/ext/ed25519/ref10/sign.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ext/ed25519/ref10/ge_scalarmult_base.c b/src/ext/ed25519/ref10/ge_scalarmult_base.c index 421e4fa0fb..a55c3c4611 100644 --- a/src/ext/ed25519/ref10/ge_scalarmult_base.c +++ b/src/ext/ed25519/ref10/ge_scalarmult_base.c @@ -14,7 +14,7 @@ static unsigned char equal(signed char b,signed char c) static unsigned char negative(signed char b) { - unsigned long long x = b; /* 18446744073709551361..18446744073709551615: yes; 0..255: no */ + uint64_t x = b; /* 18446744073709551361..18446744073709551615: yes; 0..255: no */ x >>= 63; /* 1: yes; 0: no */ return x; } diff --git a/src/ext/ed25519/ref10/open.c b/src/ext/ed25519/ref10/open.c index 1ec4cd2bfd..2d0d55ec01 100644 --- a/src/ext/ed25519/ref10/open.c +++ b/src/ext/ed25519/ref10/open.c @@ -6,8 +6,8 @@ #include "sc.h" int crypto_sign_open( - unsigned char *m,unsigned long long *mlen, - const unsigned char *sm,unsigned long long smlen, + unsigned char *m,uint64_t *mlen, + const unsigned char *sm,uint64_t smlen, const unsigned char *pk ) { diff --git a/src/ext/ed25519/ref10/sign.c b/src/ext/ed25519/ref10/sign.c index de53742a6c..eb3fd6552c 100644 --- a/src/ext/ed25519/ref10/sign.c +++ b/src/ext/ed25519/ref10/sign.c @@ -5,8 +5,8 @@ #include "sc.h" int crypto_sign( - unsigned char *sm,unsigned long long *smlen, - const unsigned char *m,unsigned long long mlen, + unsigned char *sm,uint64_t *smlen, + const unsigned char *m,uint64_t mlen, const unsigned char *sk ) { |