summaryrefslogtreecommitdiff
path: root/security/nss/lib
diff options
context:
space:
mode:
authornelsonb%netscape.com <devnull@localhost>2000-09-29 04:03:34 +0000
committernelsonb%netscape.com <devnull@localhost>2000-09-29 04:03:34 +0000
commit5aab1f84aa892d6051918a2968bb8bb59e0b467f (patch)
tree3b687dc1940aa25728008a87f2773f81764d5454 /security/nss/lib
parent41bfd3cfe5bb37d60c0bb9fced866e0c543288e5 (diff)
downloadnss-hg-5aab1f84aa892d6051918a2968bb8bb59e0b467f.tar.gz
Fix some bugs from the last checkin.
Diffstat (limited to 'security/nss/lib')
-rw-r--r--security/nss/lib/freebl/pqg.c6
1 files 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;