Lines Matching full:curve
23 * curve underlying prime field, and computes y in Fp such that:
25 * curve parameters.
28 * point on our curve. The function then outputs the projective
43 * contains the curve coefficients a and b. in get_random_point_on_curve()
44 * curve_params->ec_fp is the Fp context of the curve. in get_random_point_on_curve()
54 /* Initialize our x value with the curve Fp context */ in get_random_point_on_curve()
76 * and (x, -y) both on the curve. If no square root exist, in get_random_point_on_curve()
80 /* Check that we indeed satisfy the curve equation */ in get_random_point_on_curve()
85 "solution to curve equation ...\n"); in get_random_point_on_curve()
115 /* libecc internal structure holding the curve parameters */ in check_curve()
123 /* Importing a specific curve parameters from the constant static in check_curve()
144 ext_printf("Error: error when importing curve %s " in check_curve()
149 /* Now map the curve parameters to our libecc internal representation */ in check_curve()
151 /* Get two random points on the curve */ in check_curve()
163 * curve. in check_curve()
168 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve()
175 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve()
185 /* Check that the resulting point C = 2A is indeed on the curve. in check_curve()
191 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve()
198 ext_printf("Error: C = A+B is not on the %s curve!\n", in check_curve()
204 * If the cofactor of the curve is 1, this means that the order of the in check_curve()
205 * generator is the cardinal of the curve (and hence the order of the in check_curve()
206 * curve points group). This means that for any point P on the curve, in check_curve()
208 * element of the curve additive group). in check_curve()
281 * is indeed on the curve. in check_curve()
298 ext_printf("Error: kA is not on the %s curve!\n", in check_curve()
306 ext_printf("Error: kA is not on the %s curve!\n", in check_curve()
335 ext_printf("Error: kA is not on the %s curve!\n", in check_curve()
343 ext_printf("Error: kA is not on the %s curve!\n", in check_curve()
384 * We can get the curve name from its internal type. in main()
391 /* Check our curve! */ in main()
392 ext_printf("[+] Checking curve %s\n", curve_name); in main()
395 "curve %s\n", curve_name); in main()