1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

The plumbing necessary to create DSA keys with variable sized q.

Not yet used (q==160).
This commit is contained in:
David Shaw 2006-04-20 18:40:37 +00:00
parent 99b1f3e1da
commit 2f94329422
4 changed files with 34 additions and 9 deletions

View file

@ -1,3 +1,7 @@
2006-04-20 David Shaw <dshaw@jabberwocky.com>
* cipher.h: Add dsa2_generate();
2006-04-19 David Shaw <dshaw@jabberwocky.com>
* cipher.h: Add SHA-224.

View file

@ -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 );