mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-07 10:40:28 +09:00
fe25519: Fix integer types of fe25519_iszero()
Fixes T188
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit 31b26934b0)
This commit is contained in:
4
src/external/fe25519.c
vendored
4
src/external/fe25519.c
vendored
@@ -120,10 +120,10 @@ void fe25519_pack(unsigned char r[32], const fe25519 *x)
|
||||
}
|
||||
}
|
||||
|
||||
int fe25519_iszero(const fe25519 *x)
|
||||
uint32_t fe25519_iszero(const fe25519 *x)
|
||||
{
|
||||
int i;
|
||||
int r;
|
||||
uint32_t r;
|
||||
|
||||
fe25519 t = *x;
|
||||
fe25519_freeze(&t);
|
||||
|
||||
Reference in New Issue
Block a user