diff options
author | David Shaw <dshaw@jabberwocky.com> | 2006-03-30 21:20:59 +0200 |
---|---|---|
committer | David Shaw <dshaw@jabberwocky.com> | 2006-03-30 21:20:59 +0200 |
commit | 92e1528bf2206b44b7d321e686ac9a1c1251fc5b (patch) | |
tree | ba9f1e067f05d7438942c2069b9916d1d99569b2 /g10/sig-check.c | |
parent | * README: Some more notes about building fat binaries. (diff) | |
download | gnupg2-92e1528bf2206b44b7d321e686ac9a1c1251fc5b.tar.xz gnupg2-92e1528bf2206b44b7d321e686ac9a1c1251fc5b.zip |
* main.h, seskey.c (encode_md_value): Modify to allow a q size greater
than 160 bits as per DSA2. This will allow us to verify and issue DSA2
signatures for some backwards compatibility once we start generating DSA2
keys.
* sign.c (do_sign), sig-check.c (do_check): Change all callers.
* sign.c (do_sign): Enforce the 160-bit check for new signatures here
since encode_md_value can handle non-160-bit digests now. This will need
to come out once the standard for DSA2 is firmed up.
Diffstat (limited to 'g10/sig-check.c')
-rw-r--r-- | g10/sig-check.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/g10/sig-check.c b/g10/sig-check.c index d576769da..15703346c 100644 --- a/g10/sig-check.c +++ b/g10/sig-check.c @@ -274,8 +274,7 @@ do_check( PKT_public_key *pk, PKT_signature *sig, MD_HANDLE digest, } md_final( digest ); - result = encode_md_value( pk->pubkey_algo, digest, sig->digest_algo, - mpi_get_nbits(pk->pkey[0]) ); + result = encode_md_value( pk, NULL, digest, sig->digest_algo ); if (!result) return G10ERR_GENERAL; ctx.sig = sig; |