Lines Matching refs:on_curve
100 int is_on_montgomery_curve(fp_src_t u, fp_src_t v, ec_montgomery_crv_src_t curve, int *on_curve) in is_on_montgomery_curve() argument
106 MUST_HAVE((on_curve != NULL), ret, err); in is_on_montgomery_curve()
132 (*on_curve) = (!cmp); in is_on_montgomery_curve()
148 int aff_pt_montgomery_is_on_curve(aff_pt_montgomery_src_t pt, int *on_curve) in aff_pt_montgomery_is_on_curve() argument
154 ret = is_on_montgomery_curve(&(pt->u), &(pt->v), pt->crv, on_curve); in aff_pt_montgomery_is_on_curve()
217 int ret, on_curve; in aff_pt_montgomery_import_from_buf() local
239 ret = aff_pt_montgomery_is_on_curve(pt, &on_curve); EG(ret, err); in aff_pt_montgomery_import_from_buf()
240 if (!on_curve) { in aff_pt_montgomery_import_from_buf()
262 int ret, on_curve; in aff_pt_montgomery_export_to_buf() local
268 ret = aff_pt_montgomery_is_on_curve(pt, &on_curve); EG(ret, err); in aff_pt_montgomery_export_to_buf()
269 MUST_HAVE(on_curve, ret, err); in aff_pt_montgomery_export_to_buf()
448 int ret, on_curve; in aff_pt_montgomery_to_shortw() local
455 MUST_HAVE((!aff_pt_montgomery_is_on_curve(in_montgomery, &on_curve)) && on_curve, ret, err); in aff_pt_montgomery_to_shortw()
479 MUST_HAVE((!aff_pt_is_on_curve(out_shortw, &on_curve)) && on_curve, ret, err); in aff_pt_montgomery_to_shortw()
499 int ret, on_curve; in aff_pt_shortw_to_montgomery() local
506 MUST_HAVE((!aff_pt_is_on_curve(in_shortw, &on_curve)) && on_curve, ret, err); in aff_pt_shortw_to_montgomery()
529 MUST_HAVE((!aff_pt_montgomery_is_on_curve(out_montgomery, &on_curve)) && on_curve, ret, err); in aff_pt_shortw_to_montgomery()