Home
last modified time | relevance | path

Searched refs:montgomery_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
300 ret = ec_montgomery_crv_check_initialized(montgomery_crv); EG(ret, err); in curve_montgomery_to_shortw()
302 ret = fp_init(&tmp, montgomery_crv->A.ctx); EG(ret, err); in curve_montgomery_to_shortw()
303 ret = fp_init(&tmp2, montgomery_crv->A.ctx); EG(ret, err); in curve_montgomery_to_shortw()
304 ret = fp_init(&a, montgomery_crv->A.ctx); EG(ret, err); in curve_montgomery_to_shortw()
305 ret = fp_init(&b, montgomery_crv->A.ctx); EG(ret, err); in curve_montgomery_to_shortw()
308 ret = fp_sqr(&tmp, &(montgomery_crv->B)); EG(ret, err); in curve_montgomery_to_shortw()
316 ret = fp_sqr(&tmp2, &(montgomery_crv->A)); EG(ret, err); in curve_montgomery_to_shortw()
323 ret = fp_sqr(&tmp, &(montgomery_crv->B)); EG(ret, err); in curve_montgomery_to_shortw()
324 ret = fp_mul(&tmp, &tmp, &(montgomery_crv->B)); EG(ret, err); in curve_montgomery_to_shortw()
[all …]
H A Daff_pt_edwards.c309 ec_montgomery_crv_t montgomery_crv, in curve_edwards_to_montgomery() argument
344 ret = ec_montgomery_crv_init(montgomery_crv, &A, &B, &(edwards_crv->order)); in curve_edwards_to_montgomery()
452 ec_montgomery_crv montgomery_crv; in curve_edwards_to_shortw() local
453 montgomery_crv.magic = WORD(0); in curve_edwards_to_shortw()
455 ret = curve_edwards_to_montgomery(edwards_crv, &montgomery_crv, alpha_edwards); EG(ret, err); in curve_edwards_to_shortw()
456 ret = curve_montgomery_to_shortw(&montgomery_crv, shortw_crv); in curve_edwards_to_shortw()
459 ec_montgomery_crv_uninit(&montgomery_crv); in curve_edwards_to_shortw()
473 ec_montgomery_crv montgomery_crv; in curve_edwards_shortw_check() local
474 montgomery_crv.magic = WORD(0); in curve_edwards_shortw_check()
476 ret = curve_edwards_to_montgomery(edwards_crv, &montgomery_crv, alpha_edwards); EG(ret, err); in curve_edwards_shortw_check()
[all …]
H A Dprj_pt.c2091 …to_aff_pt_montgomery(prj_pt_src_t in_shortw, ec_montgomery_crv_src_t montgomery_crv, aff_pt_montgo… in prj_pt_shortw_to_aff_pt_montgomery() argument
2099 ret = curve_montgomery_shortw_check(montgomery_crv, in_shortw->crv); EG(ret, err); in prj_pt_shortw_to_aff_pt_montgomery()
2107 ret = aff_pt_shortw_to_montgomery(&in_shortw_aff, montgomery_crv, out_montgomery); in prj_pt_shortw_to_aff_pt_montgomery()
/freebsd/crypto/libecc/include/libecc/curves/
H A Daff_pt.h79 …_to_montgomery(ec_edwards_crv_src_t edwards_crv, ec_montgomery_crv_t montgomery_crv, fp_src_t alph…
80 …mery_check(ec_edwards_crv_src_t edwards_crv, ec_montgomery_crv_src_t montgomery_crv, fp_src_t alph…
82 ATTRIBUTE_WARN_UNUSED_RET int curve_montgomery_to_edwards(ec_montgomery_crv_src_t montgomery_crv, e…
120 ATTRIBUTE_WARN_UNUSED_RET int curve_montgomery_to_shortw(ec_montgomery_crv_src_t montgomery_crv, ec…
122 ATTRIBUTE_WARN_UNUSED_RET int curve_montgomery_shortw_check(ec_montgomery_crv_src_t montgomery_crv,…
123 …tw_to_montgomery(ec_shortw_crv_src_t shortw_crv, ec_montgomery_crv_t montgomery_crv, fp_src_t alph…
127 …shortw_to_montgomery(aff_pt_src_t in_shortw, ec_montgomery_crv_src_t montgomery_crv, aff_pt_montgo…
131 …_montgomery(aff_pt_edwards_src_t in_edwards, ec_montgomery_crv_src_t montgomery_crv, aff_pt_montgo…
H A Dprj_pt.h85 ec_montgomery_crv_src_t montgomery_crv,