Lines Matching defs:generator

1504  * of the generator, using certain (large) precomputed multiples in g_pre_comp.
1521 * of multiples of the generator (two in each of the last 32 rounds)
1531 /* add multiples of the generator */
1609 /* Precomputation for the group generator. */
1826 /* Computes scalar*generator + \sum scalars[i]*points[i], ignoring NULL values
1849 EC_POINT *generator = NULL;
1873 generator = EC_POINT_new(group);
1874 if (generator == NULL)
1876 /* get the generator from precomputation */
1885 generator, x, y, z, ctx))
1887 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1888 /* precomputation matches generator */
1892 * treat the generator as a random point */
1921 * the generator */
1978 /* the scalar for the generator */
1997 /* do the multiplication with generator precomputation*/
2005 /* do the multiplication without generator precomputation */
2023 if (generator != NULL)
2024 EC_POINT_free(generator);
2043 EC_POINT *generator = NULL;
2056 /* get the generator */
2057 if (group->generator == NULL) goto err;
2058 generator = EC_POINT_new(group);
2059 if (generator == NULL)
2063 if (!EC_POINT_set_affine_coordinates_GFp(group, generator, x, y, ctx))
2067 /* if the generator is the standard one, use built-in precomputation */
2068 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
2074 if ((!BN_to_felem(x_tmp, &group->generator->X)) ||
2075 (!BN_to_felem(y_tmp, &group->generator->Y)) ||
2076 (!BN_to_felem(z_tmp, &group->generator->Z)))
2150 if (generator != NULL)
2151 EC_POINT_free(generator);