Home
last modified time | relevance | path

Searched refs:fp_sqr (Results 1 – 11 of 11) sorted by relevance

/freebsd/crypto/libecc/src/examples/basic/
H A Dfp_square_residue.c72 ret = fp_sqr(&x, &x); EG(ret, err); in main()
80 ret = fp_sqr(&x_sqrt1, &x_sqrt1); EG(ret, err); in main()
89 ret = fp_sqr(&x_sqrt2, &x_sqrt2); EG(ret, err); in main()
/freebsd/crypto/libecc/src/curves/
H A Daff_pt_montgomery.c116 ret = fp_sqr(&Bv2, v); EG(ret, err); in is_on_montgomery_curve()
120 ret = fp_sqr(&Au2, u); EG(ret, err); in is_on_montgomery_curve()
308 ret = fp_sqr(&tmp, &(montgomery_crv->B)); EG(ret, err); in curve_montgomery_to_shortw()
316 ret = fp_sqr(&tmp2, &(montgomery_crv->A)); EG(ret, err); in curve_montgomery_to_shortw()
323 ret = fp_sqr(&tmp, &(montgomery_crv->B)); EG(ret, err); in curve_montgomery_to_shortw()
422 ret = fp_sqr(&tmp, gamma); EG(ret, err); in curve_shortw_to_montgomery()
566 ret = fp_sqr(v2, u); EG(ret, err); in aff_pt_montgomery_v_from_u()
H A Daff_pt.c118 ret = fp_sqr(y1, y1); EG(ret, err); in aff_pt_y_from_x()
159 ret = fp_sqr(&tmp1, y); EG(ret, err); in is_on_shortw_curve()
164 ret = fp_sqr(&tmp2, x); EG(ret, err); in is_on_shortw_curve()
H A Dec_shortw.c56 ret = fp_sqr(&tmp, a); EG(ret, err); in ec_shortw_crv_init()
H A Daff_pt_edwards.c122 ret = fp_sqr(&x2, x); EG(ret, err); in is_on_edwards_curve()
124 ret = fp_sqr(&y2, y); EG(ret, err); in is_on_edwards_curve()
331 ret = fp_sqr(&tmp1, alpha_edwards); EG(ret, err); in curve_edwards_to_montgomery()
H A Dprj_pt.c166 ret = fp_sqr(&X, &(in->X)); EG(ret, err); in prj_pt_is_on_curve()
176 ret = fp_sqr(&Y, &(in->Y)); EG(ret, err); in prj_pt_is_on_curve()
/freebsd/crypto/libecc/include/libecc/fp/
H A Dfp_mul.h21 ATTRIBUTE_WARN_UNUSED_RET int fp_sqr(fp_t out, fp_src_t in);
/freebsd/crypto/libecc/src/fp/
H A Dfp_sqrt.c227 ret = fp_sqr(&tmp_fp, &tmp_fp); EG(ret, err); in fp_sqrt()
246 ret = fp_sqr(&b, &b); EG(ret, err); in fp_sqrt()
253 ret = fp_sqr(&c, &b); EG(ret, err); in fp_sqrt()
H A Dfp_mul.c55 int fp_sqr(fp_t out, fp_src_t in) in fp_sqr() function
/freebsd/crypto/libecc/src/sig/
H A Deddsa.c374 ret = fp_sqr(&tmp_x, &tmp_x); EG(ret, err1); in eddsa_encode_point()
376 ret = fp_sqr(&tmp_y, &tmp_y); EG(ret, err1); in eddsa_encode_point()
389 ret = fp_sqr(&tmp_x, &tmp_x); EG(ret, err1); in eddsa_encode_point()
391 ret = fp_sqr(&tmp_y, &tmp_y); EG(ret, err1); in eddsa_encode_point()
534 ret = fp_sqr(&tmp, &sqrt1); EG(ret, err); in eddsa_decode_point()
536 ret = fp_sqr(&tmp, &sqrt2); EG(ret, err); in eddsa_decode_point()
544 ret = fp_sqr(&sqrt1, &sqrt1); EG(ret, err); in eddsa_decode_point()
545 ret = fp_sqr(&sqrt2, &sqrt2); EG(ret, err); in eddsa_decode_point()
/freebsd/crypto/libecc/src/arithmetic_tests/
H A Darithmetic_tests.c791 GENERIC_TEST_FP(fp_sqr, FP_SQR, "(^2)", fp_sqr, "cff", "ioi",