Home
last modified time | relevance | path

Searched refs:shortw_crv (Results 1 – 5 of 5) sorted by relevance

/freebsd/crypto/libecc/src/curves/
H A Daff_pt_montgomery.c294 int curve_montgomery_to_shortw(ec_montgomery_crv_src_t montgomery_crv, ec_shortw_crv_t shortw_crv) in curve_montgomery_to_shortw() argument
344 ret = ec_shortw_crv_init(shortw_crv, &a, &b, &(montgomery_crv->order)); in curve_montgomery_to_shortw()
361 ec_shortw_crv_src_t shortw_crv) in curve_montgomery_shortw_check() argument
367 ret = ec_shortw_crv_check_initialized(shortw_crv); EG(ret, err); in curve_montgomery_shortw_check()
371 MUST_HAVE((!fp_cmp(&(check.a), &(shortw_crv->a), &cmp)) && (!cmp), ret, err); in curve_montgomery_shortw_check()
372 MUST_HAVE((!fp_cmp(&(check.b), &(shortw_crv->b), &cmp)) && (!cmp), ret, err); in curve_montgomery_shortw_check()
373 MUST_HAVE((!nn_cmp(&(check.order), &(shortw_crv->order), &cmp)) && (!cmp), ret, err); in curve_montgomery_shortw_check()
391 int curve_shortw_to_montgomery(ec_shortw_crv_src_t shortw_crv, in curve_shortw_to_montgomery() argument
399 ret = ec_shortw_crv_check_initialized(shortw_crv); EG(ret, err); in curve_shortw_to_montgomery()
402 MUST_HAVE((alpha->ctx == shortw_crv->a.ctx) && (gamma->ctx == shortw_crv->a.ctx), ret, err); in curve_shortw_to_montgomery()
[all …]
H A Daff_pt_edwards.c448 ec_shortw_crv_t shortw_crv, in curve_edwards_to_shortw() argument
456 ret = curve_montgomery_to_shortw(&montgomery_crv, shortw_crv); in curve_edwards_to_shortw()
469 ec_shortw_crv_src_t shortw_crv, in curve_edwards_shortw_check() argument
478 ret = curve_montgomery_shortw_check(&montgomery_crv, shortw_crv); in curve_edwards_shortw_check()
491 int curve_shortw_to_edwards(ec_shortw_crv_src_t shortw_crv, in curve_shortw_to_edwards() argument
501 …ret = curve_shortw_to_montgomery(shortw_crv, &montgomery_crv, alpha_montgomery, gamma_montgomery);… in curve_shortw_to_edwards()
706 ec_shortw_crv_src_t shortw_crv, in aff_pt_edwards_to_shortw() argument
720 ret = aff_pt_montgomery_to_shortw(&inter_montgomery, shortw_crv, out_shortw); in aff_pt_edwards_to_shortw()
H A Dprj_pt.c1953 ec_shortw_crv_src_t shortw_crv, in aff_pt_edwards_to_prj_pt_shortw() argument
1964 ret = curve_edwards_shortw_check(in_edwards->crv, shortw_crv, alpha_edwards); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
1967 ret = prj_pt_init(out_shortw, shortw_crv); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
1985 …ret = aff_pt_edwards_to_shortw(in_edwards, shortw_crv, &out_shortw_aff, alpha_edwards); EG(ret, er… in aff_pt_edwards_to_prj_pt_shortw()
2061 ec_shortw_crv_src_t shortw_crv, in aff_pt_montgomery_to_prj_pt_shortw() argument
2070 ret = curve_montgomery_shortw_check(in_montgomery->crv, shortw_crv); EG(ret, err); in aff_pt_montgomery_to_prj_pt_shortw()
2073 ret = prj_pt_init(out_shortw, shortw_crv); EG(ret, err); in aff_pt_montgomery_to_prj_pt_shortw()
2076 ret = aff_pt_montgomery_to_shortw(in_montgomery, shortw_crv, &out_shortw_aff); EG(ret, err); in aff_pt_montgomery_to_prj_pt_shortw()
/freebsd/crypto/libecc/include/libecc/curves/
H A Daff_pt.h84 …ve_edwards_to_shortw(ec_edwards_crv_src_t edwards_crv, ec_shortw_crv_t shortw_crv, fp_src_t alpha_…
85 …rds_shortw_check(ec_edwards_crv_src_t edwards_crv, ec_shortw_crv_src_t shortw_crv, fp_src_t alpha_…
86 ATTRIBUTE_WARN_UNUSED_RET int curve_shortw_to_edwards(ec_shortw_crv_src_t shortw_crv, ec_edwards_cr…
88 …edwards_to_shortw(aff_pt_edwards_src_t in_edwards, ec_shortw_crv_src_t shortw_crv, aff_pt_t out_sh…
120 …int curve_montgomery_to_shortw(ec_montgomery_crv_src_t montgomery_crv, ec_shortw_crv_t shortw_crv);
122 …ve_montgomery_shortw_check(ec_montgomery_crv_src_t montgomery_crv, ec_shortw_crv_src_t shortw_crv);
123 ATTRIBUTE_WARN_UNUSED_RET int curve_shortw_to_montgomery(ec_shortw_crv_src_t shortw_crv, ec_montgom…
126 …y_to_shortw(aff_pt_montgomery_src_t in_montgomery, ec_shortw_crv_src_t shortw_crv, aff_pt_t out_sh…
H A Dprj_pt.h75 ec_shortw_crv_src_t shortw_crv,
78 ec_shortw_crv_src_t shortw_crv,