diff options
author | Werner Koch <wk@gnupg.org> | 1998-04-08 21:49:02 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-04-08 21:49:02 +0200 |
commit | 8b10a87908f4d382735a046e7d043ebc250d8d67 (patch) | |
tree | 9c4255d5cd84df663f9a7001b7b6277e53cf6e6e /g10/dsa.c | |
parent | New tests (diff) | |
download | gnupg2-8b10a87908f4d382735a046e7d043ebc250d8d67.tar.xz gnupg2-8b10a87908f4d382735a046e7d043ebc250d8d67.zip |
test release
Diffstat (limited to 'g10/dsa.c')
-rw-r--r-- | g10/dsa.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -39,7 +39,6 @@ void g10_dsa_sign( PKT_secret_cert *skc, PKT_signature *sig, MD_HANDLE md, int digest_algo ) { - DSA_secret_key skey; MPI frame; byte *dp; @@ -58,12 +57,9 @@ g10_dsa_sign( PKT_secret_cert *skc, PKT_signature *sig, / BYTES_PER_MPI_LIMB ); mpi_set_buffer( frame, md_read(md, digest_algo), md_digest_length(digest_algo), 0 ); - skey.p = skc->d.elg.p; - skey.g = skc->d.elg.g; - skey.y = skc->d.elg.y; - skey.x = skc->d.elg.x; - dsa_sign( sig->d.dsa.r, sig->d.dsa.s, frame, &skey); - memset( &skey, 0, sizeof skey ); + if( DBG_CIPHER ) + log_mpidump("used sig frame: ", frame); + dsa_sign( sig->d.dsa.r, sig->d.dsa.s, frame, &skc->d.dsa ); mpi_free(frame); if( opt.verbose ) { char *ustr = get_user_id_string( sig->keyid ); |