diff --git a/dsa-keygen.c b/dsa-keygen.c index abadb4d8f7d531005348931b31150ab0be45b956..0e2b9cb7eb5cdbbc35c0e98bced96d40580f9a26 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 ab5adb0b4d0858382c8bd648e6f983a3034e4141..605a8ca0f496cf448ccf45a608c016e358816186 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);