bug fix for ecdsa

This commit is contained in:
NIIBE Yutaka
2014-01-22 14:34:46 +09:00
parent 94508ae5d9
commit 5c01e92c20

View File

@@ -535,7 +535,7 @@ ecdsa (bn256 *r, bn256 *s, const bn256 *z, const bn256 *d)
if (carry)
bn256_sub (s, s, N);
else
bn256_sub (tmp, s, N);
bn256_sub ((bn256 *)tmp, s, N);
bn256_mul (tmp, s, k_inv);
mod_reduce (s, tmp, N, MU_lower);
}