Lines Matching defs:generator

108  * Precomputed multiples of the standard generator
237 /* Precomputation for the group generator. */
1136 * generator, using certain (large) precomputed multiples in g_pre_comp.
1157 * of the generator (two in each of the last 28 rounds) and additions of
1167 /* add multiples of the generator */
1408 * Computes scalar*generator + \sum scalars[i]*points[i], ignoring NULL
1431 EC_POINT *generator = NULL;
1451 generator = EC_POINT_new(group);
1452 if (generator == NULL)
1454 /* get the generator from precomputation */
1462 generator,
1465 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1466 /* precomputation matches generator */
1470 * we don't have valid precomputation: treat the generator as a
1501 /* the generator */
1560 /* the scalar for the generator */
1577 /* do the multiplication with generator precomputation */
1583 /* do the multiplication without generator precomputation */
1602 EC_POINT_free(generator);
1615 EC_POINT *generator = NULL;
1636 /* get the generator */
1637 if (group->generator == NULL)
1639 generator = EC_POINT_new(group);
1640 if (generator == NULL)
1644 if (!EC_POINT_set_affine_coordinates(group, generator, x, y, ctx))
1649 * if the generator is the standard one, use built-in precomputation
1651 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx)) {
1655 if ((!BN_to_felem(pre->g_pre_comp[0][1][0], group->generator->X)) ||
1656 (!BN_to_felem(pre->g_pre_comp[0][1][1], group->generator->Y)) ||
1657 (!BN_to_felem(pre->g_pre_comp[0][1][2], group->generator->Z)))
1737 EC_POINT_free(generator);