diff options
author | David Shaw <[email protected]> | 2006-03-30 19:20:59 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-03-30 19:20:59 +0000 |
commit | 92e1528bf2206b44b7d321e686ac9a1c1251fc5b (patch) | |
tree | ba9f1e067f05d7438942c2069b9916d1d99569b2 /g10/main.h | |
parent | * README: Some more notes about building fat binaries. (diff) | |
download | gnupg-92e1528bf2206b44b7d321e686ac9a1c1251fc5b.tar.gz gnupg-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/main.h')
-rw-r--r-- | g10/main.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/main.h b/g10/main.h index ac337fac9..434ecc2e8 100644 --- a/g10/main.h +++ b/g10/main.h @@ -203,8 +203,8 @@ void try_make_homedir( const char *fname ); /*-- seskey.c --*/ void make_session_key( DEK *dek ); MPI encode_session_key( DEK *dek, unsigned nbits ); -MPI encode_md_value( int pubkey_algo, MD_HANDLE md, - int hash_algo, unsigned nbits ); +MPI encode_md_value( PKT_public_key *pk, PKT_secret_key *sk, + MD_HANDLE md, int hash_algo ); /*-- import.c --*/ int parse_import_options(char *str,unsigned int *options,int noisy); |