Lines Matching refs:edwards_crv
308 int curve_edwards_to_montgomery(ec_edwards_crv_src_t edwards_crv, in curve_edwards_to_montgomery() argument
316 ret = ec_edwards_crv_check_initialized(edwards_crv); EG(ret, err); in curve_edwards_to_montgomery()
318 MUST_HAVE((edwards_crv->a.ctx == alpha_edwards->ctx), ret, err); in curve_edwards_to_montgomery()
320 ret = fp_init(&tmp1, edwards_crv->a.ctx); EG(ret, err); in curve_edwards_to_montgomery()
321 ret = fp_init(&tmp2, edwards_crv->a.ctx); EG(ret, err); in curve_edwards_to_montgomery()
322 ret = fp_init(&A, edwards_crv->a.ctx); EG(ret, err); in curve_edwards_to_montgomery()
323 ret = fp_init(&B, edwards_crv->a.ctx); EG(ret, err); in curve_edwards_to_montgomery()
332 ret = fp_sub(&tmp2, &(edwards_crv->a), &(edwards_crv->d)); EG(ret, err); in curve_edwards_to_montgomery()
338 ret = fp_add(&A, &(edwards_crv->a), &(edwards_crv->d)); EG(ret, err); in curve_edwards_to_montgomery()
344 ret = ec_montgomery_crv_init(montgomery_crv, &A, &B, &(edwards_crv->order)); in curve_edwards_to_montgomery()
447 int curve_edwards_to_shortw(ec_edwards_crv_src_t edwards_crv, in curve_edwards_to_shortw() argument
455 ret = curve_edwards_to_montgomery(edwards_crv, &montgomery_crv, alpha_edwards); EG(ret, err); in curve_edwards_to_shortw()
468 int curve_edwards_shortw_check(ec_edwards_crv_src_t edwards_crv, in curve_edwards_shortw_check() argument
476 ret = curve_edwards_to_montgomery(edwards_crv, &montgomery_crv, alpha_edwards); EG(ret, err); in curve_edwards_shortw_check()
492 ec_edwards_crv_t edwards_crv, in curve_shortw_to_edwards() argument
503 ret = curve_montgomery_to_edwards(&montgomery_crv, edwards_crv, alpha_edwards); in curve_shortw_to_edwards()
621 ec_edwards_crv_src_t edwards_crv, in aff_pt_montgomery_to_edwards() argument
639 ret = ec_edwards_crv_check_initialized(edwards_crv); EG(ret, err); in aff_pt_montgomery_to_edwards()
645 ret = curve_edwards_montgomery_check(edwards_crv, in_montgomery->crv, alpha); EG(ret, err); in aff_pt_montgomery_to_edwards()
670 ret = aff_pt_edwards_init(out_edwards, edwards_crv); EG(ret, err); in aff_pt_montgomery_to_edwards()
735 ec_edwards_crv_src_t edwards_crv, in aff_pt_shortw_to_edwards() argument
745 ret = curve_edwards_to_montgomery(edwards_crv, &inter_montgomery_crv, alpha_edwards); EG(ret, err); in aff_pt_shortw_to_edwards()
749 ret = aff_pt_montgomery_to_edwards(&inter_montgomery, edwards_crv, out_edwards, alpha_edwards); in aff_pt_shortw_to_edwards()