Commit 7f521e8e authored by Niels Möller's avatar Niels Möller

* src/dsa_keygen.c (dsa_generate_key): Fixed declaration and code

mixup.
* src/rsa_keygen.c (rsa_generate_key): Likewise.

Rev: src/dsa_keygen.c:1.19
Rev: src/rsa_keygen.c:1.7
parent 7edadc1b
......@@ -191,13 +191,13 @@ dsa_generate_key(struct randomness *r, unsigned level)
{
struct sexp *key = NULL;
assert(r->quality == RANDOM_GOOD);
mpz_t p; mpz_t q;
mpz_t g; mpz_t y;
mpz_t x;
mpz_t t;
assert(r->quality == RANDOM_GOOD);
mpz_init(p); mpz_init(q);
mpz_init(g); mpz_init(y);
mpz_init(x);
......
......@@ -40,8 +40,6 @@ rsa_generate_key(mpz_t e, struct randomness *r, UINT32 bits)
{
struct sexp *key = NULL;
assert(r->quality == RANDOM_GOOD);
mpz_t n;
mpz_t d;
mpz_t p; mpz_t q;
......@@ -49,6 +47,8 @@ rsa_generate_key(mpz_t e, struct randomness *r, UINT32 bits)
mpz_t phi;
mpz_t tmp;
assert(r->quality == RANDOM_GOOD);
mpz_init(n); mpz_init(d); mpz_init(p), mpz_init(q);
mpz_init(a); mpz_init(b); mpz_init(c);
......
Markdown is supported
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