Lines Matching defs:generator
1669 * generator, using certain (large) precomputed multiples in g_pre_comp.
1690 * of the generator (two in each of the last 32 rounds) and additions of
1700 /* add multiples of the generator */
1772 /* Precomputation for the group generator. */
2020 * Computes scalar*generator + \sum scalars[i]*points[i], ignoring NULL
2044 EC_POINT *generator = NULL;
2064 generator = EC_POINT_new(group);
2065 if (generator == NULL)
2067 /* get the generator from precomputation */
2075 generator,
2078 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
2079 /* precomputation matches generator */
2083 * we don't have valid precomputation: treat the generator as a
2117 * generator
2179 /* the scalar for the generator */
2196 /* do the multiplication with generator precomputation */
2202 /* do the multiplication without generator precomputation */
2221 EC_POINT_free(generator);
2234 EC_POINT *generator = NULL;
2256 /* get the generator */
2257 if (group->generator == NULL)
2259 generator = EC_POINT_new(group);
2260 if (generator == NULL)
2264 if (!EC_POINT_set_affine_coordinates(group, generator, x, y, ctx))
2269 * if the generator is the standard one, use built-in precomputation
2271 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) {
2275 if ((!BN_to_felem(x_tmp, group->generator->X)) ||
2276 (!BN_to_felem(y_tmp, group->generator->Y)) ||
2277 (!BN_to_felem(z_tmp, group->generator->Z)))
2367 EC_POINT_free(generator);