diff options
author | Niels Möller <nisse@lysator.liu.se> | 2020-10-28 21:48:10 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-10-28 21:48:10 +0100 |
commit | 2f3c633e94f09cd03a94ffd8f7ddac4020da81e7 (patch) | |
tree | dedc83ac498c670e493e7df26f7b2fae90dc6c2b /ecc-secp192r1.c | |
parent | 1cbc9e094eae458ff83b0a59c33a929520c51a63 (diff) | |
download | nettle-use-mpn_cnd-functions.tar.gz |
Use GMP functions mpn_cnd_add_n, mpn_cnd_sub_n and mpn_cnd_swap.use-mpn_cnd-functions
Diffstat (limited to 'ecc-secp192r1.c')
-rw-r--r-- | ecc-secp192r1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecc-secp192r1.c b/ecc-secp192r1.c index 046026f3..05c26408 100644 --- a/ecc-secp192r1.c +++ b/ecc-secp192r1.c @@ -78,7 +78,7 @@ ecc_secp192r1_modp (const struct ecc_modulo *m UNUSED, mp_limb_t *rp) cy = sec_add_1 (rp + 5, rp + 5, 1, cy); assert (cy <= 1); - cy = cnd_add_n (cy, rp, ecc_Bmodp, 6); + cy = mpn_cnd_add_n (cy, rp, rp, ecc_Bmodp, 6); assert (cy == 0); } #elif GMP_NUMB_BITS == 64 @@ -102,7 +102,7 @@ ecc_secp192r1_modp (const struct ecc_modulo *m UNUSED, mp_limb_t *rp) cy += mpn_add_n (rp + 1, rp + 1, rp + 3, 2); assert (cy <= 1); - cy = cnd_add_n (cy, rp, ecc_Bmodp, 3); + cy = mpn_cnd_add_n (cy, rp, rp, ecc_Bmodp, 3); assert (cy == 0); } |