Commit eb64ec48 authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.359
Rev: src/dsa.c:1.27
Rev: src/publickey_crypto.c:1.43
Rev: src/rsa_keygen.c:1.4
parent 0ed2df12
2001-06-09 Niels Mller <nisse@cuckoo.hack.org>
* src/io.c (do_consuming_read): In the EOF case, call
close_fd_read after A_WRITE.
2001-06-07 Niels Mller <nisse@cuckoo.hack.org>
* src/io.c (do_kill_io_backend): Let close_fd do it's work.
2001-06-06 Niels Mller <nisse@cuckoo.hack.org>
* src/io.c (close_fd): Really close the fd, and invoke any close
callback.
(io_iter): Simplified handling of closed files. Simply unlink
them, close_fd has to do the rest of the work.
2001-05-29 Niels Mller <nisse@cuckoo.hack.org>
* acinclude.m4: AC_CHECK_MEMBER: Deleted definition (a similar
......
......@@ -144,7 +144,7 @@ generic_dsa_verify(struct dsa_verifier *key,
/* Compute w = s^-1 (mod q) */
mpz_init(w);
/* NOTE: mpz_invert sometimes generates negative inverses. */
/* NOTE: In gmp-2, mpz_invert sometimes generates negative inverses. */
if (!mpz_invert(w, s, key->q))
{
werror("generic_dsa_verify: s non-invertible.\n");
......
......@@ -102,6 +102,7 @@ zn_invert(struct abstract_group *c, mpz_t res, mpz_t x)
{
CAST(group_zn, closure, c);
/* NOTE: In gmp-2, mpz_invert sometimes generates negative inverses. */
if (!mpz_invert(res, x, closure->modulo))
fatal("zn_invert: element is non-invertible\n");
......
......@@ -68,7 +68,7 @@ rsa_generate_key(mpz_t e, struct randomness *r, UINT32 bits)
debug("phi = %xn\ne = %xn\n", phi, e);
/* Compute d such that e d = 1 (mod phi) */
/* NOTE: mpz_invert sometimes generates negative inverses. */
/* NOTE: In gmp-2, mpz_invert sometimes generates negative inverses. */
if (!mpz_invert(d, e, phi))
{
debug("rsa_generate_key: e not invertible.\n");
......@@ -93,6 +93,7 @@ rsa_generate_key(mpz_t e, struct randomness *r, UINT32 bits)
debug("b = %xn\n", b);
/* NOTE: In gmp-2, mpz_invert sometimes generates negative inverses. */
if (!mpz_invert(c, q, p))
{
werror("rsa_generate_key: q not invertible.");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment