Searched refs:montgomery_curve (Results 1 – 1 of 1) sorted by relevance
/freebsd/crypto/libecc/src/ecdh/ |
H A D | x25519_448.c | 159 ec_montgomery_crv montgomery_curve; in x25519_448_core() local 169 _Tmp.magic = montgomery_curve.magic = Q.magic = WORD(0); in x25519_448_core() 211 ret = curve_shortw_to_montgomery(shortw_curve, &montgomery_curve, alpha_montgomery, in x25519_448_core() 219 ret = nn_cmp(v_coord_nn, &(montgomery_curve.A.ctx->p), &cmp); EG(ret, err); in x25519_448_core() 222 ret = fp_init(u_coord, montgomery_curve.A.ctx); EG(ret, err); in x25519_448_core() 226 ret = compute_v_from_u(u_coord, v_coord, &montgomery_curve); EG(ret, err); in x25519_448_core() 251 ret = aff_pt_montgomery_init_from_coords(&_Tmp, &montgomery_curve, u_coord, v_coord); EG(ret, err); in x25519_448_core() 272 ret = prj_pt_shortw_to_aff_pt_montgomery(&Q, &montgomery_curve, &_Tmp); EG(ret, err); in x25519_448_core() 291 ec_montgomery_crv_uninit(&montgomery_curve); in x25519_448_core()
|