Skip to content
Snippets Groups Projects
Commit 978fcedc authored by Niels Möller's avatar Niels Möller
Browse files

Comment fixes.

Rev: src/nettle/dsa-keygen.c:1.5
Rev: src/nettle/dsa-sign.c:1.6
parent 00df073c
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ dsa_nist_gen(mpz_t p, mpz_t q,
mpz_t t;
mpz_t c;
/* For NIS keysizes, we should have L = 512 + 65 * l */
/* For NIS keysizes, we should have L = 512 + 64 * l */
n = (L-1) / 160; b = (L-1) % 160;
mpz_init(s);
......
......@@ -68,7 +68,7 @@ dsa_sign_digest(const struct dsa_public_key *pub,
/* What do we do now? The key is invalid. */
abort();
/* Compute signature s = k^-1(h + xr) (mod q) */
/* Compute signature s = k^-1 (h + xr) (mod q) */
mpz_mul(tmp, signature->r, key->x);
mpz_fdiv_r(tmp, tmp, pub->q);
mpz_add(tmp, tmp, h);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment