summaryrefslogtreecommitdiff
path: root/mpz/powm_sec.c
diff options
context:
space:
mode:
authorNiels M?ller <nisse@lysator.liu.se>2014-02-11 21:22:07 +0100
committerNiels M?ller <nisse@lysator.liu.se>2014-02-11 21:22:07 +0100
commit0c9075cc3ec1e2207187264f603fb7de576bea7c (patch)
tree7b2f628194e63daf06bbd25745813053cbb51b53 /mpz/powm_sec.c
parent2f55bc34fd43a72ba75250ff38aae445d9702131 (diff)
downloadgmp-0c9075cc3ec1e2207187264f603fb7de576bea7c.tar.gz
mpn_sec_powm: Replace exponent limb count argument with a bit count.
Diffstat (limited to 'mpz/powm_sec.c')
-rw-r--r--mpz/powm_sec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mpz/powm_sec.c b/mpz/powm_sec.c
index 5823a01e6..98644ca49 100644
--- a/mpz/powm_sec.c
+++ b/mpz/powm_sec.c
@@ -76,14 +76,14 @@ mpz_powm_sec (mpz_ptr r, mpz_srcptr b, mpz_srcptr e, mpz_srcptr m)
}
TMP_MARK;
- tp = TMP_ALLOC_LIMBS (n + mpn_sec_powm_itch (bn, en, n));
+ tp = TMP_ALLOC_LIMBS (n + mpn_sec_powm_itch (bn, en * GMP_NUMB_BITS, n));
rp = tp; tp += n;
bp = PTR(b);
ep = PTR(e);
- mpn_sec_powm (rp, bp, bn, ep, en, mp, n, tp);
+ mpn_sec_powm (rp, bp, bn, ep, en * GMP_NUMB_BITS, mp, n, tp);
rn = n;