diff options
author | wtchang%redhat.com <devnull@localhost> | 2005-08-27 01:09:22 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2005-08-27 01:09:22 +0000 |
commit | 3db68cfd535e8970b9592a676cc66f505e688f68 (patch) | |
tree | 7b30c92ae3a4ef52684b77a384c5c688ed1d675f /security/nss/lib/freebl/ecl/ecl.c | |
parent | 4055d135f797d86933ca9e9f23da5c3f0c44843e (diff) | |
download | nss-hg-3db68cfd535e8970b9592a676cc66f505e688f68.tar.gz |
Bugzilla Bug 257693: code cleanup. 1. Change "X9.63" to "X9.62". 2. In
EC_ValidatePublicKey, set error codes and handle a NULL return from
ECGroup_fromName. 3. In the ECGroupStr structure, move the validate_point
field up. 4. In the test cases, if the tests that should fail, passed,
say so in the error messages. r=douglas@stebila.ca.
Modified Files:
blapi.h ec.c ecl/ecl-priv.h ecl/ecl.c ecl/ecl.h
ecl/tests/ec2_test.c ecl/tests/ecp_test.c
Diffstat (limited to 'security/nss/lib/freebl/ecl/ecl.c')
-rw-r--r-- | security/nss/lib/freebl/ecl/ecl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/freebl/ecl/ecl.c b/security/nss/lib/freebl/ecl/ecl.c index 0a95cf452..520755f6a 100644 --- a/security/nss/lib/freebl/ecl/ecl.c +++ b/security/nss/lib/freebl/ecl/ecl.c @@ -68,10 +68,10 @@ ECGroup_new() MP_CHECKOK(mp_init(&group->order)); group->base_point_mul = NULL; group->points_mul = NULL; + group->validate_point = NULL; group->extra1 = NULL; group->extra2 = NULL; group->extra_free = NULL; - group->validate_point = NULL; CLEANUP: if (res != MP_OKAY) { @@ -394,7 +394,7 @@ ECGroup_fromName(const ECCurveName name) return group; } -/* Validates an EC public key as described in Section 5.2.2 of X9.63. */ +/* Validates an EC public key as described in Section 5.2.2 of X9.62. */ mp_err ECPoint_validate(const ECGroup *group, const mp_int *px, const mp_int *py) { |