From 5aab1f84aa892d6051918a2968bb8bb59e0b467f Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Fri, 29 Sep 2000 04:03:34 +0000 Subject: Fix some bugs from the last checkin. --- security/nss/lib/freebl/pqg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/nss/lib/freebl/pqg.c b/security/nss/lib/freebl/pqg.c index 54e0e9a23..c6afa0438 100644 --- a/security/nss/lib/freebl/pqg.c +++ b/security/nss/lib/freebl/pqg.c @@ -320,8 +320,8 @@ makeGfromH(const mp_int *P, /* input. */ CHECK_MPI_OK( mp_init(&exp) ); CHECK_MPI_OK( mp_init(&pm1) ); CHECK_MPI_OK( mp_sub_d(P, 1, &pm1) ); /* P - 1 */ - if ( mp_cmp(&H, &pm1) > 0) /* H = H mod (P-1) */ - CHECK_MPI_OK( mp_sub(&H, &pm1, &H) ); + if ( mp_cmp(H, &pm1) > 0) /* H = H mod (P-1) */ + CHECK_MPI_OK( mp_sub(H, &pm1, H) ); /* Let b = 2**n (smallest power of 2 greater than P). ** Since P-1 >= b/2, and H < b, quotient(H/(P-1)) = 0 or 1 ** so the above operation safely computes H mod (P-1) @@ -572,7 +572,7 @@ PQG_VerifyParams(const PQGParams *params, const PQGVerify *vfy, SECStatus *result) { SECStatus rv = SECSuccess; - SECStatus passed; + int passed; unsigned int g, n, L, offset; mp_int P, Q, G, P_, Q_, G_, r, h; mp_err err = MP_OKAY; -- cgit v1.2.1