/freebsd/crypto/libecc/src/examples/basic/ |
H A D | fp_square_residue.c | 72 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 D | aff_pt_montgomery.c | 116 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 D | aff_pt.c | 118 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 D | ec_shortw.c | 56 ret = fp_sqr(&tmp, a); EG(ret, err); in ec_shortw_crv_init()
|
H A D | aff_pt_edwards.c | 122 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 D | prj_pt.c | 166 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 D | fp_mul.h | 21 ATTRIBUTE_WARN_UNUSED_RET int fp_sqr(fp_t out, fp_src_t in);
|
/freebsd/crypto/libecc/src/fp/ |
H A D | fp_sqrt.c | 227 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 D | fp_mul.c | 55 int fp_sqr(fp_t out, fp_src_t in) in fp_sqr() function
|
/freebsd/crypto/libecc/src/sig/ |
H A D | eddsa.c | 374 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 D | arithmetic_tests.c | 791 GENERIC_TEST_FP(fp_sqr, FP_SQR, "(^2)", fp_sqr, "cff", "ioi",
|