aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/mpi-pow.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpi/mpi-pow.c')
-rw-r--r--mpi/mpi-pow.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mpi/mpi-pow.c b/mpi/mpi-pow.c
index c4c62d7e4..beb01f95a 100644
--- a/mpi/mpi-pow.c
+++ b/mpi/mpi-pow.c
@@ -42,7 +42,7 @@ mpi_powm( MPI res, MPI base, MPI exponent, MPI mod)
{
mpi_ptr_t rp, ep, mp, bp;
mpi_size_t esize, msize, bsize, rsize;
- int esign, msign, bsign, rsign;
+ int msign, bsign, rsign;
int esec, msec, bsec, rsec;
mpi_size_t size;
int mod_shift_cnt;
@@ -57,7 +57,6 @@ mpi_powm( MPI res, MPI base, MPI exponent, MPI mod)
esize = exponent->nlimbs;
msize = mod->nlimbs;
size = 2 * msize;
- esign = exponent->sign;
msign = mod->sign;
esec = mpi_is_secure(exponent);
@@ -136,7 +135,7 @@ mpi_powm( MPI res, MPI base, MPI exponent, MPI mod)
MPN_COPY(bp, rp, bsize);
}
if( rp == ep ) {
- /* RES and EXPONENT are identical.
+ /* RES and EXPONENT are identical.
Allocate temp. space for EXPONENT. */
ep = ep_marker = mpi_alloc_limb_space( esize, esec );
MPN_COPY(ep, rp, esize);