From: Niels Möller Date: Tue, 11 Mar 2003 15:21:24 +0000 (+0100) Subject: Comment fixes. X-Git-Tag: nettle_1.7_release_20030311~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=978fcedcc3617f3498e392d9e786e22f2c77299e;p=thirdparty%2Fnettle.git Comment fixes. Rev: src/nettle/dsa-keygen.c:1.5 Rev: src/nettle/dsa-sign.c:1.6 --- diff --git a/dsa-keygen.c b/dsa-keygen.c index abadb4d8..0e2b9cb7 100644 --- a/dsa-keygen.c +++ b/dsa-keygen.c @@ -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); diff --git a/dsa-sign.c b/dsa-sign.c index ab5adb0b..605a8ca0 100644 --- a/dsa-sign.c +++ b/dsa-sign.c @@ -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);