mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
ed25519_ref10: use uint64_t and int64_t, not long long
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user