diff options
author | Niels Möller <nisse@lysator.liu.se> | 2010-05-25 17:21:19 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2010-05-25 17:21:19 +0200 |
commit | 58d64578dc319eff8c54786df80f1d6b906ad3ec (patch) | |
tree | ead70ebc46d832f5a676a260e4c84f6f243fb707 /dsa.h | |
parent | 7dfa2498ef5237eddaf542d8664f7604e0702438 (diff) | |
download | nettle-58d64578dc319eff8c54786df80f1d6b906ad3ec.tar.gz |
(dsa_generate_keypair): Rewritten, now generating primes using
Pocklington's theorem. Takes both p_size and q_size as arguments.
Rev: nettle/dsa-keygen.c:1.4
Rev: nettle/dsa.h:1.5
Diffstat (limited to 'dsa.h')
-rw-r--r-- | dsa.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -198,12 +198,9 @@ dsa_generate_keypair(struct dsa_public_key *pub, struct dsa_private_key *key, void *random_ctx, nettle_random_func random, - void *progress_ctx, nettle_progress_func progress, - /* Size of key, in bits. - * Use size = 512 + 64 * l for the official - * NIS key sizes. */ - unsigned bits); + void *progress_ctx, nettle_progress_func progress, + unsigned p_bits, unsigned q_bits); /* Keys in sexp form. */ |