Commit 674ad514 authored by Niels Möller's avatar Niels Möller
Browse files

* src/dsa_keygen.c (dsa_generate_key): Added lost

dsa_find_generator() call, spotted by jps.

Rev: src/dsa_keygen.c:1.13
parent 1dda33c7
......@@ -198,7 +198,7 @@ dsa_generate_key(struct randomness *r, unsigned level)
mpz_init(t);
dsa_nist_gen(p, q, r, level);
debug("p = %xn\nq = %xn\n", p, q);
/* Sanity check. */
......@@ -221,6 +221,8 @@ dsa_generate_key(struct randomness *r, unsigned level)
goto done;
}
dsa_find_generator(g, r, p, q);
mpz_set(t, q);
mpz_sub_ui(t, t, 2);
bignum_random(x, r, t);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment