summaryrefslogtreecommitdiff
path: root/nss/lib/freebl/ecl/ecp_25519.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss/lib/freebl/ecl/ecp_25519.c')
-rw-r--r--nss/lib/freebl/ecl/ecp_25519.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nss/lib/freebl/ecl/ecp_25519.c b/nss/lib/freebl/ecl/ecp_25519.c
index a8d4152..1e7875f 100644
--- a/nss/lib/freebl/ecl/ecp_25519.c
+++ b/nss/lib/freebl/ecl/ecp_25519.c
@@ -79,8 +79,7 @@ ec_Curve25519_pt_validate(const SECItem *px)
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff },
};
- /* The point must not be longer than 32 (it can be smaller). */
- if (px->len <= 32) {
+ if (px->len == 32) {
p = px->data;
} else {
return SECFailure;