Lines Matching refs:rh
185 BIGNUM *rh, *tmp, *Z4, *Z6; in ec_point_is_on_curve() local
193 if ((rh = BN_CTX_get(ctx)) == NULL) in ec_point_is_on_curve()
210 if (!ec_field_sqr(group, rh, point->X, ctx)) in ec_point_is_on_curve()
227 if (!BN_mod_sub_quick(rh, rh, tmp, group->p)) in ec_point_is_on_curve()
229 if (!ec_field_mul(group, rh, rh, point->X, ctx)) in ec_point_is_on_curve()
234 if (!BN_mod_add_quick(rh, rh, tmp, group->p)) in ec_point_is_on_curve()
236 if (!ec_field_mul(group, rh, rh, point->X, ctx)) in ec_point_is_on_curve()
243 if (!BN_mod_add_quick(rh, rh, tmp, group->p)) in ec_point_is_on_curve()
249 if (!BN_mod_add_quick(rh, rh, group->a, group->p)) in ec_point_is_on_curve()
251 if (!ec_field_mul(group, rh, rh, point->X, ctx)) in ec_point_is_on_curve()
254 if (!BN_mod_add_quick(rh, rh, group->b, group->p)) in ec_point_is_on_curve()
262 ret = (0 == BN_ucmp(tmp, rh)); in ec_point_is_on_curve()