1
1

fe25519: Fix integer types of fe25519_iszero()

Fixes T188

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Этот коммит содержится в:
Andreas Schneider 2019-10-31 13:52:49 +01:00
родитель 922a2aee99
Коммит 31b26934b0
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -39,7 +39,7 @@ void fe25519_unpack(fe25519 *r, const unsigned char x[32]);
void fe25519_pack(unsigned char r[32], const fe25519 *x);
int fe25519_iszero(const fe25519 *x);
uint32_t fe25519_iszero(const fe25519 *x);
int fe25519_iseq_vartime(const fe25519 *x, const fe25519 *y);

4
src/external/fe25519.c поставляемый
Просмотреть файл

@ -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);