Home
last modified time | relevance | path

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

/freebsd/crypto/libecc/src/examples/basic/
H A Dcurve_basic_examples.c46 fp x, y, fp_tmp1, fp_tmp2; in get_random_point_on_curve() local
52 x.magic = y.magic = fp_tmp1.magic = fp_tmp2.magic = WORD(0); in get_random_point_on_curve()
59 ret = fp_init(&fp_tmp1, ctx); EG(ret, err); in get_random_point_on_curve()
67 ret = fp_copy(&fp_tmp1, &x); EG(ret, err); in get_random_point_on_curve()
70 ret = fp_pow(&fp_tmp1, &fp_tmp1, &nn_tmp); EG(ret, err); in get_random_point_on_curve()
72 ret = fp_add(&fp_tmp1, &fp_tmp1, &fp_tmp2); EG(ret, err); in get_random_point_on_curve()
73 ret = fp_add(&fp_tmp1, &fp_tmp1, &(curve_params->ec_curve.b)); EG(ret, err); in get_random_point_on_curve()
79 if (fp_sqrt(&y, &fp_tmp2, &fp_tmp1) == 0) { in get_random_point_on_curve()
92 ret = fp_one(&fp_tmp1); EG(ret, err); in get_random_point_on_curve()
94 &fp_tmp1); EG(ret, err); in get_random_point_on_curve()
[all …]