summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dsa-keygen.c2
-rw-r--r--dsa-sign.c2
2 files changed, 2 insertions, 2 deletions
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);