diff options
-rw-r--r-- | dsa-keygen.c | 2 | ||||
-rw-r--r-- | dsa-sign.c | 2 |
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); @@ -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); |