Home
last modified time | relevance | path

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

/freebsd/crypto/libecc/src/examples/basic/
H A Dfp_square_residue.c81 ret = fp_cmp(&x, &x_sqrt1, &cmp); EG(ret, err); in main()
90 ret = fp_cmp(&x, &x_sqrt2, &cmp); EG(ret, err); in main()
/freebsd/crypto/libecc/src/curves/
H A Daff_pt.c169 ret = fp_cmp(&tmp1, &tmp2, &cmp); EG(ret, err); in is_on_shortw_curve()
229 ret = fp_cmp(&(in1->x), &(in2->x), &cmp_x); EG(ret, err); in ec_shortw_aff_cmp()
230 ret = fp_cmp(&(in1->y), &(in2->y), &cmp_y); EG(ret, err); in ec_shortw_aff_cmp()
256 ret = fp_cmp(&(in1->x), &(in2->x), &cmp); EG(ret, err); in ec_shortw_aff_eq_or_opp()
H A Daff_pt_montgomery.c130 ret = fp_cmp(&tmp, &Bv2, &cmp); EG(ret, err); in is_on_montgomery_curve()
193 ret = fp_cmp(&(in1->u), &(in2->u), &cmp1); EG(ret, err); in ec_montgomery_aff_cmp()
194 ret = fp_cmp(&(in1->v), &(in2->v), &cmp2); EG(ret, err); in ec_montgomery_aff_cmp()
371 MUST_HAVE((!fp_cmp(&(check.a), &(shortw_crv->a), &cmp)) && (!cmp), ret, err); in curve_montgomery_shortw_check()
372 MUST_HAVE((!fp_cmp(&(check.b), &(shortw_crv->b), &cmp)) && (!cmp), ret, err); in curve_montgomery_shortw_check()
424 MUST_HAVE((!fp_cmp(&c, &tmp, &cmp)) && (!cmp), ret, err); in curve_shortw_to_montgomery()
H A Daff_pt_edwards.c136 ret = fp_cmp(&tmp1, &tmp2, &cmp); in is_on_edwards_curve()
205 ret = fp_cmp(&(in1->x), &(in2->x), &cmp1); EG(ret, err); in ec_edwards_aff_cmp()
206 ret = fp_cmp(&(in1->y), &(in2->y), &cmp2); in ec_edwards_aff_cmp()
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()
426 ret = fp_cmp(&d, &tmp, &cmp); EG(ret, err); in curve_montgomery_to_edwards()
559 ret = fp_cmp(&(in_edwards->y), &tmp, &cmp); EG(ret, err); in aff_pt_edwards_to_montgomery()
572 ret = fp_cmp(&(in_edwards->y), &tmp2, &cmp); EG(ret, err); in aff_pt_edwards_to_montgomery()
H A Dec_edwards.c56 MUST_HAVE((!fp_cmp(a, d, &cmp)) && cmp, ret, err); in ec_edwards_crv_init()
H A Dprj_pt.c180 ret = fp_cmp(&X, &Y, &cmp); EG(ret, err); in prj_pt_is_on_curve()
334 ret = fp_cmp(&X1, &X2, &x_cmp); EG(ret, err); in prj_pt_cmp()
335 ret = fp_cmp(&Y1, &Y2, &y_cmp); in prj_pt_cmp()
369 ret = fp_cmp(&X1, &X2, cmp); in _prj_pt_eq_or_opp_X()
1977 ret = fp_cmp(&(in_edwards->y), &one, &cmp); EG(ret, err); in aff_pt_edwards_to_prj_pt_shortw()
/freebsd/crypto/libecc/src/fp/
H A Dfp_sqrt.c64 ret = fp_cmp(&pow, &one, &cmp); EG(ret, err); in legendre()
216 ret = fp_cmp(&t, &one_fp, &cmp); EG(ret, err); in fp_sqrt()
228 ret = fp_cmp(&tmp_fp, &one_fp, &cmp); EG(ret, err); in fp_sqrt()
H A Dfp.c294 int fp_cmp(fp_src_t in1, fp_src_t in2, int *cmp) in fp_cmp() function
/freebsd/crypto/libecc/include/libecc/fp/
H A Dfp.h90 ATTRIBUTE_WARN_UNUSED_RET int fp_cmp(fp_src_t in1, fp_src_t in2, int *cmp);
/freebsd/crypto/libecc/src/wycheproof_tests/
H A Dlibecc_wycheproof.c522 ret = fp_cmp(&x, &tmp, &check); EG(ret, err); in uncompress_ecc_point()
/freebsd/crypto/libecc/src/arithmetic_tests/
H A Darithmetic_tests.c567 ret = fp_cmp(fp_out_ptr[i], FP_T_GENERIC_IN(i), &cmp); \