diff options
Diffstat (limited to 'mpi')
-rw-r--r-- | mpi/ChangeLog | 6 | ||||
-rw-r--r-- | mpi/mpi-pow.c | 5 | ||||
-rw-r--r-- | mpi/mpicoder.c | 4 |
3 files changed, 10 insertions, 5 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog index 1f81333ba..d51e0d212 100644 --- a/mpi/ChangeLog +++ b/mpi/ChangeLog @@ -1,3 +1,9 @@ +2011-08-09 Werner Koch <[email protected]> + + * mpicoder.c (mpi_fromstr): Remove unused var. + + * mpi-pow.c (mpi_powm): Remove unused var. + 2011-07-04 Werner Koch <[email protected]> * longlong.h: [__arm__]: Do no use asm if thumb code generation is 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); diff --git a/mpi/mpicoder.c b/mpi/mpicoder.c index cbfe14947..92fc15aac 100644 --- a/mpi/mpicoder.c +++ b/mpi/mpicoder.c @@ -200,7 +200,7 @@ mpi_read_from_buffer(byte *buffer, unsigned int *ret_nread, int secure) int mpi_fromstr(MPI val, const char *str) { - int hexmode=0, sign=0, prepend_zero=0, i, j, c, c1, c2; + int sign=0, prepend_zero=0, i, j, c, c1, c2; unsigned nbits, nbytes, nlimbs; mpi_limb_t a; @@ -209,7 +209,7 @@ mpi_fromstr(MPI val, const char *str) str++; } if( *str == '0' && str[1] == 'x' ) - hexmode = 1; + ; else return 1; /* other bases are not yet supported */ str += 2; |