Searched refs:edwards_crv (Results 1 – 4 of 4) sorted by relevance
/freebsd/crypto/libecc/include/libecc/curves/ |
H A D | aff_pt.h | 79 ATTRIBUTE_WARN_UNUSED_RET int curve_edwards_to_montgomery(ec_edwards_crv_src_t edwards_crv, ec_mont… 80 ATTRIBUTE_WARN_UNUSED_RET int curve_edwards_montgomery_check(ec_edwards_crv_src_t edwards_crv, ec_m… 82 …ry_to_edwards(ec_montgomery_crv_src_t montgomery_crv, ec_edwards_crv_t edwards_crv, fp_src_t alpha… 84 ATTRIBUTE_WARN_UNUSED_RET int curve_edwards_to_shortw(ec_edwards_crv_src_t edwards_crv, ec_shortw_c… 85 ATTRIBUTE_WARN_UNUSED_RET int curve_edwards_shortw_check(ec_edwards_crv_src_t edwards_crv, ec_short… 86 …rve_shortw_to_edwards(ec_shortw_crv_src_t shortw_crv, ec_edwards_crv_t edwards_crv, fp_src_t alpha… 89 … aff_pt_shortw_to_edwards(aff_pt_src_t in_shortw, ec_edwards_crv_src_t edwards_crv, aff_pt_edwards… 132 …to_edwards(aff_pt_montgomery_src_t in_montgomery, ec_edwards_crv_src_t edwards_crv, aff_pt_edwards…
|
H A D | prj_pt.h | 81 ec_edwards_crv_src_t edwards_crv,
|
/freebsd/crypto/libecc/src/curves/ |
H A D | aff_pt_edwards.c | 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() [all …]
|
H A D | prj_pt.c | 2005 ec_edwards_crv_src_t edwards_crv, in prj_pt_shortw_to_aff_pt_edwards() argument 2015 ret = curve_edwards_shortw_check(edwards_crv, in_shortw->crv, alpha_edwards); EG(ret, err); in prj_pt_shortw_to_aff_pt_edwards() 2035 ret = aff_pt_edwards_init_from_coords(out_edwards, edwards_crv, &zero, &one); in prj_pt_shortw_to_aff_pt_edwards() 2047 ret = aff_pt_shortw_to_edwards(&in_shortw_aff, edwards_crv, out_edwards, alpha_edwards); in prj_pt_shortw_to_aff_pt_edwards()
|