Home
last modified time | relevance | path

Searched refs:fp_copy (Results 1 – 18 of 18) sorted by relevance

/freebsd/crypto/libecc/src/curves/
H A Daff_pt.c68 ret = fp_copy(&(in->x), xcoord); EG(ret, err); in aff_pt_init_from_coords()
69 ret = fp_copy(&(in->y), ycoord); in aff_pt_init_from_coords()
114 ret = fp_copy(y1, x); EG(ret, err); in aff_pt_y_from_x()
115 ret = fp_copy(y2, x); EG(ret, err); in aff_pt_y_from_x()
206 ret = fp_copy(&(out->x), &(in->x)); EG(ret, err); in ec_shortw_aff_copy()
207 ret = fp_copy(&(out->y), &(in->y)); in ec_shortw_aff_copy()
H A Dec_edwards.c60 ret = fp_copy(&(crv->a), a); EG(ret, err); in ec_edwards_crv_init()
61 ret = fp_copy(&(crv->d), d); EG(ret, err); in ec_edwards_crv_init()
H A Daff_pt_edwards.c70 ret = fp_copy(&(in->x), xcoord); EG(ret, err); in aff_pt_edwards_init_from_coords()
71 ret = fp_copy(&(in->y), ycoord); in aff_pt_edwards_init_from_coords()
181 ret = fp_copy(&(out->x), &(in->x)); EG(ret, err); in ec_edwards_aff_copy()
182 ret = fp_copy(&(out->y), &(in->y)); in ec_edwards_aff_copy()
566 ret = fp_copy(&tab_x[1], &(in_edwards->x)); EG(ret, err); in aff_pt_edwards_to_montgomery()
568 ret = fp_copy(&tab_y[0], &tmp2); EG(ret, err); in aff_pt_edwards_to_montgomery()
569 ret = fp_copy(&tab_y[1], &(in_edwards->y)); EG(ret, err); in aff_pt_edwards_to_montgomery()
579 ret = fp_copy(&tmp2, &tmp); EG(ret, err); in aff_pt_edwards_to_montgomery()
659 ret = fp_copy(&tab_u[1], &(in_montgomery->u)); EG(ret, err); in aff_pt_montgomery_to_edwards()
661 ret = fp_copy(&tab_v[0], &tmp); EG(ret, err); in aff_pt_montgomery_to_edwards()
[all …]
H A Dec_montgomery.c63 ret = fp_copy(&(crv->A), A); EG(ret, err); in ec_montgomery_crv_init()
64 ret = fp_copy(&(crv->B), B); EG(ret, err); in ec_montgomery_crv_init()
H A Dec_shortw.c73 ret = fp_copy(&(crv->a), a); EG(ret, err); in ec_shortw_crv_init()
74 ret = fp_copy(&(crv->b), b); EG(ret, err); in ec_shortw_crv_init()
H A Daff_pt_montgomery.c66 ret = fp_copy(&(in->u), ucoord); EG(ret, err); in aff_pt_montgomery_init_from_coords()
67 ret = fp_copy(&(in->v), vcoord); in aff_pt_montgomery_init_from_coords()
121 ret = fp_copy(&u3, &Au2); EG(ret, err); in is_on_montgomery_curve()
171 ret = fp_copy(&(out->u), &(in->u)); EG(ret, err); in ec_montgomery_aff_copy()
172 ret = fp_copy(&(out->v), &(in->v)); in ec_montgomery_aff_copy()
H A Dprj_pt.c76 ret = fp_copy(&(in->X), xcoord); EG(ret, err); in prj_pt_init_from_coords()
77 ret = fp_copy(&(in->Y), ycoord); EG(ret, err); in prj_pt_init_from_coords()
78 ret = fp_copy(&(in->Z), zcoord); in prj_pt_init_from_coords()
204 ret = fp_copy(&(out->X), &(in->X)); EG(ret, err); in prj_pt_copy()
205 ret = fp_copy(&(out->Y), &(in->Y)); EG(ret, err); in prj_pt_copy()
206 ret = fp_copy(&(out->Z), &(in->Z)); in prj_pt_copy()
290 ret = fp_copy(&(out->X), &(in->x)); EG(ret, err); in ec_shortw_aff_to_prj()
291 ret = fp_copy(&(out->Y), &(in->y)); EG(ret, err); in ec_shortw_aff_to_prj()
709 ret = fp_copy(&(out->Z), &sss); in __prj_pt_dbl_monty_no_cf()
/freebsd/crypto/libecc/src/fp/
H A Dfp_sqrt.c138 ret = fp_copy(_n, n); EG(ret, err); in fp_sqrt()
152 ret = fp_copy(sqrt1, _n); EG(ret, err); in fp_sqrt()
153 ret = fp_copy(sqrt2, _n); EG(ret, err); in fp_sqrt()
218 ret = fp_copy(sqrt1, &r); EG(ret, err); in fp_sqrt()
225 ret = fp_copy(&tmp_fp, &t); EG(ret, err); in fp_sqrt()
243 ret = fp_copy(&b, &c); EG(ret, err); in fp_sqrt()
H A Dfp_pow.c46 ret = fp_copy(&base, out); EG(ret, err); in _fp_pow_aliased()
H A Dfp_mul.c123 ret = fp_copy(&_num, num); EG(ret, err1); in fp_div()
H A Dfp.c330 int fp_copy(fp_t out, fp_src_t in) in fp_copy() function
/freebsd/crypto/libecc/include/libecc/fp/
H A Dfp.h92 ATTRIBUTE_WARN_UNUSED_RET int fp_copy(fp_t out, fp_src_t in);
/freebsd/crypto/libecc/src/examples/basic/
H A Dcurve_basic_examples.c67 ret = fp_copy(&fp_tmp1, &x); EG(ret, err); in get_random_point_on_curve()
68 ret = fp_copy(&fp_tmp2, &x); EG(ret, err); in get_random_point_on_curve()
H A Dcurve_ecdh.c212 ret = fp_copy(x, &(Q.X)); EG(ret, err); in ECDH_helper()
/freebsd/contrib/googletest/googletest/test/
H A Dgoogletest-filepath-test.cc580 const FilePath fp_copy(fp); in TEST() local
581 EXPECT_EQ("spicy", fp_copy.string()); in TEST()
/freebsd/crypto/libecc/src/sig/
H A Deddsa.c373 ret = fp_copy(&tmp_x, &(in->x)); EG(ret, err1); in eddsa_encode_point()
375 ret = fp_copy(&tmp_y, &(in->y)); EG(ret, err1); in eddsa_encode_point()
388 ret = fp_copy(&tmp_x, &(in->x)); EG(ret, err1); in eddsa_encode_point()
390 ret = fp_copy(&tmp_y, &(in->y)); EG(ret, err1); in eddsa_encode_point()
509 ret = fp_copy(&x, &sqrt1); EG(ret, err); in eddsa_decode_point()
512 ret = fp_copy(&x, &sqrt2); EG(ret, err); in eddsa_decode_point()
530 ret = fp_copy(&sqrt1, &x); EG(ret, err); in eddsa_decode_point()
531 ret = fp_copy(&sqrt2, &y); EG(ret, err); in eddsa_decode_point()
H A Dbip0340.c937 ret = fp_copy(&(R->X), &rx); EG(ret, err); in _bip0340_verify_batch_no_memory()
942 ret = fp_copy(&(R->Y), &(R->Z)); EG(ret, err); in _bip0340_verify_batch_no_memory()
1192 ret = fp_copy(&(R->X), &rx); EG(ret, err); in _bip0340_verify_batch()
1197 ret = fp_copy(&(R->Y), &(R->Z)); EG(ret, err); in _bip0340_verify_batch()
/freebsd/crypto/libecc/src/examples/sss/
H A Dsss.c350 ret = fp_copy(&tmp2, &r_inv); EG(ret, err); in _sss_raw_lagrange()