mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
sc25519: Fix integer types of sc25519_add()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
2
src/external/sc25519.c
vendored
2
src/external/sc25519.c
vendored
@@ -223,7 +223,7 @@ int sc25519_lt_vartime(const sc25519 *x, const sc25519 *y)
|
||||
|
||||
void sc25519_add(sc25519 *r, const sc25519 *x, const sc25519 *y)
|
||||
{
|
||||
int i, carry;
|
||||
uint32_t i, carry;
|
||||
|
||||
for (i = 0; i < 32; i++) {
|
||||
r->v[i] = x->v[i] + y->v[i];
|
||||
|
||||
Reference in New Issue
Block a user