Lines Matching defs:generator

1485  * generator, using certain (large) precomputed multiples in g_pre_comp.
1505 * of the generator (last quarter of rounds) and additions of other
1515 /* add multiples of the generator */
1571 /* Precomputation for the group generator. */
1809 * Computes scalar*generator + \sum scalars[i]*points[i], ignoring NULL
1833 EC_POINT *generator = NULL;
1858 generator = EC_POINT_new(group);
1859 if (generator == NULL)
1861 /* get the generator from precomputation */
1869 generator, x, y, z,
1872 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1873 /* precomputation matches generator */
1877 * we don't have valid precomputation: treat the generator as a
1912 * generator
1968 /* the scalar for the generator */
1985 /* do the multiplication with generator precomputation */
1992 /* do the multiplication without generator precomputation */
2009 if (generator != NULL)
2010 EC_POINT_free(generator);
2029 EC_POINT *generator = NULL;
2042 /* get the generator */
2043 if (group->generator == NULL)
2045 generator = EC_POINT_new(group);
2046 if (generator == NULL)
2050 if (!EC_POINT_set_affine_coordinates_GFp(group, generator, x, y, ctx))
2055 * if the generator is the standard one, use built-in precomputation
2057 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) {
2062 if ((!BN_to_felem(pre->g_pre_comp[1][0], &group->generator->X)) ||
2063 (!BN_to_felem(pre->g_pre_comp[1][1], &group->generator->Y)) ||
2064 (!BN_to_felem(pre->g_pre_comp[1][2], &group->generator->Z)))
2126 if (generator != NULL)
2127 EC_POINT_free(generator);