Reduce before reciprocation

This commit is contained in:
Matthias Schiffer 2012-12-07 20:47:51 +01:00
parent 80db8a2f72
commit 9aae1f4177

View file

@ -191,6 +191,8 @@ void ecc_25519_gf_recip(ecc_int_256 *out, const ecc_int_256 *in) {
A[i] = in->p[i];
}
reduce(A);
for (i = 0; i < 32; i++) {
unsigned char c;