aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-26 10:58:26 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-26 10:58:26 -0400
commitb2acd3580c8c129771cdcc1f0ab2bbfcaffbdefb (patch)
tree46a60856195c82316d324890939122b7436a2db9 /src/ext/ed25519
parent8b36bb92998d4081ae99ea733a8f4ec57c0a8f04 (diff)
downloadtor-b2acd3580c8c129771cdcc1f0ab2bbfcaffbdefb.tar.gz
tor-b2acd3580c8c129771cdcc1f0ab2bbfcaffbdefb.zip
ed25519_ref10: use uint64_t and int64_t, not long long
Diffstat (limited to 'src/ext/ed25519')
-rw-r--r--src/ext/ed25519/ref10/ge_scalarmult_base.c2
-rw-r--r--src/ext/ed25519/ref10/open.c4
-rw-r--r--src/ext/ed25519/ref10/sign.c4
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
)
{