/freebsd/crypto/libecc/src/curves/ |
H A D | aff_pt_edwards.c | 332 ret = fp_sub(&tmp2, &(edwards_crv->a), &(edwards_crv->d)); EG(ret, err); in curve_edwards_to_montgomery() 420 ret = fp_sub(&d, &(m_crv->A), &tmp); EG(ret, err); in curve_montgomery_to_edwards() 563 ret = fp_sub(&tmp2, &tmp2, &tmp); EG(ret, err); in aff_pt_edwards_to_montgomery() 581 ret = fp_sub(&tmp, &tmp, &y); EG(ret, err); in aff_pt_edwards_to_montgomery() 678 ret = fp_sub(&tmp, &u, &tmp); EG(ret, err); in aff_pt_montgomery_to_edwards() 791 ret = fp_sub(y1, &tmp, y1); EG(ret, err); in aff_pt_edwards_y_from_x() 795 ret = fp_sub(y2, &tmp, y2); EG(ret, err); in aff_pt_edwards_y_from_x() 840 ret = fp_sub(x1, &tmp, x1); EG(ret, err); in aff_pt_edwards_x_from_y() 844 ret = fp_sub(x2, &(crv->a), x2); EG(ret, err); in aff_pt_edwards_x_from_y()
|
H A D | ec_montgomery.c | 56 ret = fp_sub(&tmp, A, &tmp); EG(ret, err); in ec_montgomery_crv_init()
|
H A D | aff_pt_montgomery.c | 318 ret = fp_sub(&tmp2, &a, &tmp2); EG(ret, err); in curve_montgomery_to_shortw() 339 ret = fp_sub(&b, &tmp2, &b); EG(ret, err); in curve_montgomery_to_shortw() 523 ret = fp_sub(&(out_montgomery->u), &tmp2, &tmp); EG(ret, err); in aff_pt_shortw_to_montgomery()
|
H A D | aff_pt.c | 160 ret = fp_sub(&tmp1, &tmp1, &(curve->b)); EG(ret, err); in is_on_shortw_curve()
|
/freebsd/crypto/libecc/include/libecc/fp/ |
H A D | fp_add.h | 22 ATTRIBUTE_WARN_UNUSED_RET int fp_sub(fp_t out, fp_src_t in1, fp_src_t in2);
|
/freebsd/crypto/libecc/src/fp/ |
H A D | fp_montgomery.c | 41 return fp_sub(out, in1, in2); in fp_sub_monty()
|
H A D | fp_add.c | 75 int fp_sub(fp_t out, fp_src_t in1, fp_src_t in2) in fp_sub() function
|
/freebsd/crypto/libecc/src/examples/sss/ |
H A D | sss.c | 361 ret = fp_sub(&tmp, &x_j, &x); EG(ret, err); in _sss_raw_lagrange() 373 ret = fp_sub(&tmp, &x_j, &x_i); EG(ret, err); in _sss_raw_lagrange()
|
/freebsd/crypto/libecc/src/sig/ |
H A D | eddsa.c | 377 ret = fp_sub(&tmp_y, &tmp_y, &tmp_x); EG(ret, err1); in eddsa_encode_point() 393 ret = fp_sub(&y1, &y1, &tmp_x); EG(ret, err1); in eddsa_encode_point() 394 ret = fp_sub(&y1, &y1, &tmp_y); EG(ret, err1); in eddsa_encode_point() 535 ret = fp_sub(&x, &x, &tmp); EG(ret, err); in eddsa_decode_point() 537 ret = fp_sub(&x, &x, &tmp); EG(ret, err); in eddsa_decode_point() 546 ret = fp_sub(&y, &sqrt2, &sqrt1); EG(ret, err); in eddsa_decode_point()
|
/freebsd/crypto/libecc/src/arithmetic_tests/ |
H A D | arithmetic_tests.c | 781 GENERIC_TEST_FP(fp_sub, FP_SUB, "-", fp_sub, "cfff", "ioii",
|