Home
last modified time | relevance | path

Searched refs:in_edwards (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/libecc/src/curves/
H A Daff_pt_edwards.c520 int aff_pt_edwards_to_montgomery(aff_pt_edwards_src_t in_edwards, in aff_pt_edwards_to_montgomery() argument
542 ret = aff_pt_edwards_is_on_curve(in_edwards, &on_curve); EG(ret, err); in aff_pt_edwards_to_montgomery()
545 ret = curve_edwards_montgomery_check(in_edwards->crv, montgomery_crv, alpha_edwards); EG(ret, err); in aff_pt_edwards_to_montgomery()
547 ret = fp_init(&tmp, in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
548 ret = fp_init(&tmp2, in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
549 ret = fp_init(&x, in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
550 ret = fp_init(&y, in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
551 ret = fp_init(&tab_x[0], in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
552 ret = fp_init(&tab_x[1], in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
553 ret = fp_init(&tab_y[0], in_edwards->crv->a.ctx); EG(ret, err); in aff_pt_edwards_to_montgomery()
[all …]
H A Dprj_pt.c1952 int aff_pt_edwards_to_prj_pt_shortw(aff_pt_edwards_src_t in_edwards, in aff_pt_edwards_to_prj_pt_shortw() argument
1963 ret = aff_pt_edwards_check_initialized(in_edwards); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
1964 ret = curve_edwards_shortw_check(in_edwards->crv, shortw_crv, alpha_edwards); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
1969 ret = fp_init(&one, in_edwards->x.ctx); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
1976 ret = fp_iszero(&(in_edwards->x), &iszero); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
1977 ret = fp_cmp(&(in_edwards->y), &one, &cmp); 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()
/freebsd/crypto/libecc/include/libecc/curves/
H A Daff_pt.h88 ATTRIBUTE_WARN_UNUSED_RET int aff_pt_edwards_to_shortw(aff_pt_edwards_src_t in_edwards, ec_shortw_c…
131 ATTRIBUTE_WARN_UNUSED_RET int aff_pt_edwards_to_montgomery(aff_pt_edwards_src_t in_edwards, ec_mont…
H A Dprj_pt.h74 ATTRIBUTE_WARN_UNUSED_RET int aff_pt_edwards_to_prj_pt_shortw(aff_pt_edwards_src_t in_edwards,