diff options
author | David Shaw <[email protected]> | 2006-04-20 18:40:37 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-04-20 18:40:37 +0000 |
commit | 2f94329422ed7f5c9630a484b6794f11d53c5644 (patch) | |
tree | 96a2cff217e270440689adbcf925d6bd9e4960c7 /include/cipher.h | |
parent | * gpg.c (print_mds), armor.c (armor_filter, parse_hash_header): Add (diff) | |
download | gnupg-2f94329422ed7f5c9630a484b6794f11d53c5644.tar.gz gnupg-2f94329422ed7f5c9630a484b6794f11d53c5644.zip |
The plumbing necessary to create DSA keys with variable sized q.
Not yet used (q==160).
Diffstat (limited to 'include/cipher.h')
-rw-r--r-- | include/cipher.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cipher.h b/include/cipher.h index 5649f0fce..5b531ccd2 100644 --- a/include/cipher.h +++ b/include/cipher.h @@ -184,6 +184,8 @@ int pubkey_get_nsig( int algo ); int pubkey_get_nenc( int algo ); unsigned pubkey_nbits( int algo, MPI *pkey ); int pubkey_generate( int algo, unsigned nbits, MPI *skey, MPI **retfactors ); +int dsa2_generate( int algo, unsigned nbits, unsigned qbits, + MPI *skey, MPI **retfactors ); int pubkey_check_secret_key( int algo, MPI *skey ); int pubkey_encrypt( int algo, MPI *resarr, MPI data, MPI *pkey ); int pubkey_decrypt( int algo, MPI *result, MPI *data, MPI *skey ); |