diff options
author | Werner Koch <wk@gnupg.org> | 1998-05-05 22:34:20 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-05-05 22:34:20 +0200 |
commit | 69cf10ffab3a75d5afdd59f57a772e880b4f2426 (patch) | |
tree | 9ca93abecfbf94121950bf0afe30aa3269f776e4 /cipher/dsa.h | |
parent | new release (diff) | |
download | gnupg2-69cf10ffab3a75d5afdd59f57a772e880b4f2426.tar.xz gnupg2-69cf10ffab3a75d5afdd59f57a772e880b4f2426.zip |
add DSA key generation
Diffstat (limited to 'cipher/dsa.h')
-rw-r--r-- | cipher/dsa.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cipher/dsa.h b/cipher/dsa.h index 07a41ae6c..2d38a7388 100644 --- a/cipher/dsa.h +++ b/cipher/dsa.h @@ -41,8 +41,9 @@ typedef struct { void dsa_free_public_key( DSA_public_key *pk ); void dsa_free_secret_key( DSA_secret_key *sk ); -void dsa_generate( DSA_public_key *pk, DSA_secret_key *sk, unsigned nbits ); int dsa_check_secret_key( DSA_secret_key *sk ); +void dsa_generate( DSA_public_key *pk, DSA_secret_key *sk, + unsigned nbits, MPI **ret_factors ); void dsa_sign(MPI r, MPI s, MPI input, DSA_secret_key *skey); int dsa_verify(MPI r, MPI s, MPI input, DSA_public_key *pkey); |