Home
last modified time | relevance | path

Searched refs:on_curve (Results 1 – 7 of 7) sorted by relevance

/freebsd/crypto/libecc/src/curves/
H A Daff_pt.c139 int is_on_shortw_curve(fp_src_t x, fp_src_t y, ec_shortw_crv_src_t curve, int *on_curve) in is_on_shortw_curve() argument
148 MUST_HAVE((on_curve != NULL), ret, err); in is_on_shortw_curve()
171 (*on_curve) = (!cmp); in is_on_shortw_curve()
184 int aff_pt_is_on_curve(aff_pt_src_t pt, int *on_curve) in aff_pt_is_on_curve() argument
188 MUST_HAVE((on_curve != NULL), ret, err); in aff_pt_is_on_curve()
190 ret = is_on_shortw_curve(&(pt->x), &(pt->y), pt->crv, on_curve); in aff_pt_is_on_curve()
278 int ret, on_curve; in aff_pt_import_from_buf() local
302 ret = aff_pt_is_on_curve(pt, &on_curve); EG(ret, err); in aff_pt_import_from_buf()
304 if (!on_curve) { in aff_pt_import_from_buf()
328 int ret, on_curve; in aff_pt_export_to_buf() local
[all …]
H A Daff_pt_montgomery.c100 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()
[all …]
H A Daff_pt_edwards.c106 int *on_curve) in is_on_edwards_curve() argument
112 MUST_HAVE((on_curve != NULL), ret, err); in is_on_edwards_curve()
139 (*on_curve) = (!cmp); in is_on_edwards_curve()
157 int aff_pt_edwards_is_on_curve(aff_pt_edwards_src_t pt, int *on_curve) in aff_pt_edwards_is_on_curve() argument
163 ret = is_on_edwards_curve(&(pt->x), &(pt->y), pt->crv, on_curve); in aff_pt_edwards_is_on_curve()
231 int ret, on_curve; in aff_pt_edwards_import_from_buf() local
253 ret = aff_pt_edwards_is_on_curve(pt, &on_curve); EG(ret, err); in aff_pt_edwards_import_from_buf()
254 if (!on_curve) { in aff_pt_edwards_import_from_buf()
277 int ret, on_curve; in aff_pt_edwards_export_to_buf() local
283 ret = aff_pt_edwards_is_on_curve(pt, &on_curve); EG(ret, err); in aff_pt_edwards_export_to_buf()
[all …]
H A Dprj_pt.c144 int prj_pt_is_on_curve(prj_pt_src_t in, int *on_curve) in prj_pt_is_on_curve() argument
159 MUST_HAVE((on_curve != NULL), ret, err); in prj_pt_is_on_curve()
182 (*on_curve) = (!cmp); in prj_pt_is_on_curve()
281 int ret, on_curve; in ec_shortw_aff_to_prj() local
286 ret = aff_pt_is_on_curve(in, &on_curve); EG(ret, err); in ec_shortw_aff_to_prj()
287 MUST_HAVE(on_curve, ret, err); in ec_shortw_aff_to_prj()
466 int on_curve, ret; in prj_pt_import_from_buf() local
490 ret = prj_pt_is_on_curve(pt, &on_curve); EG(ret, err); in prj_pt_import_from_buf()
491 if (!on_curve){ in prj_pt_import_from_buf()
515 int ret, on_curve; in prj_pt_import_from_aff_buf() local
[all …]
/freebsd/crypto/libecc/include/libecc/curves/
H A Daff_pt.h42 …NUSED_RET int is_on_shortw_curve(fp_src_t x, fp_src_t y, ec_shortw_crv_src_t curve, int *on_curve);
43 ATTRIBUTE_WARN_UNUSED_RET int aff_pt_is_on_curve(aff_pt_src_t pt, int *on_curve);
70 …SED_RET int is_on_edwards_curve(fp_src_t u, fp_src_t v, ec_edwards_crv_src_t curve, int *on_curve);
71 ATTRIBUTE_WARN_UNUSED_RET int aff_pt_edwards_is_on_curve(aff_pt_edwards_src_t pt, int *on_curve);
111 …T int is_on_montgomery_curve(fp_src_t u, fp_src_t v, ec_montgomery_crv_src_t curve, int *on_curve);
112 …IBUTE_WARN_UNUSED_RET int aff_pt_montgomery_is_on_curve(aff_pt_montgomery_src_t pt, int *on_curve);
H A Dprj_pt.h51 ATTRIBUTE_WARN_UNUSED_RET int prj_pt_is_on_curve(prj_pt_src_t in, int *on_curve);
/freebsd/crypto/libecc/src/sig/
H A Decfsdsa.c421 int ret, iszero, on_curve, cmp; in _ecfsdsa_verify_init() local
459 ret = is_on_shortw_curve(&rx, &ry, &(ctx->pub_key->params->ec_curve), &on_curve); EG(ret, err); in _ecfsdsa_verify_init()
460 MUST_HAVE(on_curve, ret, err); in _ecfsdsa_verify_init()