]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Comment fixes.
authorNiels Möller <nisse@lysator.liu.se>
Tue, 11 Mar 2003 15:21:24 +0000 (16:21 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 11 Mar 2003 15:21:24 +0000 (16:21 +0100)
Rev: src/nettle/dsa-keygen.c:1.5
Rev: src/nettle/dsa-sign.c:1.6

dsa-keygen.c
dsa-sign.c

index abadb4d8f7d531005348931b31150ab0be45b956..0e2b9cb7eb5cdbbc35c0e98bced96d40580f9a26 100644 (file)
@@ -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);
index ab5adb0b4d0858382c8bd648e6f983a3034e4141..605a8ca0f496cf448ccf45a608c016e358816186 100644 (file)
@@ -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);