return SECSuccess;
MP_DIGITS(&Px) = 0; MP_DIGITS(&Py) = 0; CHECK_MPI_OK( mp_init(&Px) ); CHECK_MPI_OK( mp_init(&Py) );   CHECK_MPI_OK( mp_read_unsigned_octets(&Px, publicValue->data + 1, (mp_size) len) ); CHECK_MPI_OK( mp_read_unsigned_octets(&Py, publicValue->data + 1 + len, (mp_size) len) );   group = ECGroup_fromName(ecParams->name);   CHECK_MPI_OK( ECPoint_validate(group, &Px, &Py) );  rv = SECSuccess;  cleanup: ECGroup_free(group); mp_clear(&Px); mp_clear(&Py); if (err) { MP_TO_SEC_ERROR(err); rv = SECFailure; } return rv;
EC_ValidatePublicKey(ECParams *ecParams, SECItem *publicValue){#ifdef NSS_ENABLE_ECC    if (!ecParams || !publicValue) {	PORT_SetError(SEC_ERROR_INVALID_ARGS);	return SECFailure;    }    /* XXX Add actual checks here. */    return SECSuccess;#else    PORT_SetError(SEC_ERROR_UNSUPPORTED_KEYALG);    return SECFailure;#endif /* NSS_ENABLE_ECC */}