diff options
author | David Shaw <[email protected]> | 2004-05-20 17:16:34 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-05-20 17:16:34 +0000 |
commit | 2815f9fa497ddfaf703d0b0c02ba1f1d033f9a69 (patch) | |
tree | b44dae50a4b4935383cda089868297dda13c34e6 | |
parent | * g10.c: New command --gpgconf-list. (gpgconf_list): New. From Werner on (diff) | |
download | gnupg-2815f9fa497ddfaf703d0b0c02ba1f1d033f9a69.tar.gz gnupg-2815f9fa497ddfaf703d0b0c02ba1f1d033f9a69.zip |
* dsa.c (verify): s/exp/exponent/ to fix a compiler warning. From Werner
on stable branch.
-rw-r--r-- | cipher/ChangeLog | 5 | ||||
-rw-r--r-- | cipher/dsa.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 26660413e..25cc2657c 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,8 @@ +2004-05-20 David Shaw <[email protected]> + + * dsa.c (verify): s/exp/exponent/ to fix a compiler warning. From + Werner on stable branch. + 2004-01-16 David Shaw <[email protected]> * cipher.c (setup_cipher_table): May as well call Rijndael AES at diff --git a/cipher/dsa.c b/cipher/dsa.c index b243f333f..b1543c049 100644 --- a/cipher/dsa.c +++ b/cipher/dsa.c @@ -320,7 +320,7 @@ verify(MPI r, MPI s, MPI hash, DSA_public_key *pkey ) int rc; MPI w, u1, u2, v; MPI base[3]; - MPI exp[3]; + MPI exponent[3]; if( !(mpi_cmp_ui( r, 0 ) > 0 && mpi_cmp( r, pkey->q ) < 0) ) @@ -343,10 +343,10 @@ verify(MPI r, MPI s, MPI hash, DSA_public_key *pkey ) mpi_mulm( u2, r, w, pkey->q ); /* v = g^u1 * y^u2 mod p mod q */ - base[0] = pkey->g; exp[0] = u1; - base[1] = pkey->y; exp[1] = u2; - base[2] = NULL; exp[2] = NULL; - mpi_mulpowm( v, base, exp, pkey->p ); + base[0] = pkey->g; exponent[0] = u1; + base[1] = pkey->y; exponent[1] = u2; + base[2] = NULL; exponent[2] = NULL; + mpi_mulpowm( v, base, exponent, pkey->p ); mpi_fdiv_r( v, v, pkey->q ); rc = !mpi_cmp( v, r ); |