Searched refs:m_crv (Results 1 – 1 of 1) sorted by relevance
/freebsd/crypto/libecc/src/curves/ |
H A D | aff_pt_edwards.c | 361 ec_montgomery_crv_src_t m_crv, in curve_edwards_montgomery_check() argument 368 ret = ec_montgomery_crv_check_initialized(m_crv); EG(ret, err); in curve_edwards_montgomery_check() 372 MUST_HAVE((!fp_cmp(&(check.A), &(m_crv->A), &cmp)) && (!cmp), ret, err); in curve_edwards_montgomery_check() 373 MUST_HAVE((!fp_cmp(&(check.B), &(m_crv->B), &cmp)) && (!cmp), ret, err); in curve_edwards_montgomery_check() 374 MUST_HAVE((!nn_cmp(&(check.order), &(m_crv->order), &cmp)) && (!cmp), ret, err); in curve_edwards_montgomery_check() 393 int curve_montgomery_to_edwards(ec_montgomery_crv_src_t m_crv, in curve_montgomery_to_edwards() argument 401 ret = ec_montgomery_crv_check_initialized(m_crv); EG(ret, err); in curve_montgomery_to_edwards() 403 MUST_HAVE((m_crv->A.ctx == alpha_edwards->ctx), ret, err); in curve_montgomery_to_edwards() 405 ret = fp_init(&tmp, m_crv->A.ctx); EG(ret, err); in curve_montgomery_to_edwards() 406 ret = fp_init(&tmp2, m_crv->A.ctx); EG(ret, err); in curve_montgomery_to_edwards() [all …]
|