Bugfix: secp256k1_fe_inv_var correct output

This commit is contained in:
Pieter Wuille 2013-03-31 05:17:53 +02:00
parent 2d93809255
commit 20c4d7ce9b
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void static secp256k1_fe_inv_var(secp256k1_fe_t *r, const secp256k1_fe_t *a) {
secp256k1_num_mod_inverse(&n, &n, &secp256k1_fe_consts->p);
secp256k1_num_get_bin(b, 32, &n);
secp256k1_num_free(&n);
secp256k1_fe_set_b32(&c, b);
secp256k1_fe_set_b32(r, b);
#endif
}