ed25519_ref10: use uint64_t and int64_t, not long long

This commit is contained in:
Nick Mathewson 2014-08-26 10:58:26 -04:00
parent 8b36bb9299
commit b2acd3580c
3 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ static unsigned char equal(signed char b,signed char c)
static unsigned char negative(signed char b) 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 */ x >>= 63; /* 1: yes; 0: no */
return x; return x;
} }

View File

@ -6,8 +6,8 @@
#include "sc.h" #include "sc.h"
int crypto_sign_open( int crypto_sign_open(
unsigned char *m,unsigned long long *mlen, unsigned char *m,uint64_t *mlen,
const unsigned char *sm,unsigned long long smlen, const unsigned char *sm,uint64_t smlen,
const unsigned char *pk const unsigned char *pk
) )
{ {

View File

@ -5,8 +5,8 @@
#include "sc.h" #include "sc.h"
int crypto_sign( int crypto_sign(
unsigned char *sm,unsigned long long *smlen, unsigned char *sm,uint64_t *smlen,
const unsigned char *m,unsigned long long mlen, const unsigned char *m,uint64_t mlen,
const unsigned char *sk const unsigned char *sk
) )
{ {