summaryrefslogtreecommitdiff
path: root/dsa.h
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2010-05-25 17:21:19 +0200
committerNiels Möller <nisse@lysator.liu.se>2010-05-25 17:21:19 +0200
commit58d64578dc319eff8c54786df80f1d6b906ad3ec (patch)
treeead70ebc46d832f5a676a260e4c84f6f243fb707 /dsa.h
parent7dfa2498ef5237eddaf542d8664f7604e0702438 (diff)
downloadnettle-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.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/dsa.h b/dsa.h
index c98fb12b..38c3cd49 100644
--- a/dsa.h
+++ b/dsa.h
@@ -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. */