Lines Matching defs:generator

102 /* Precomputed multiples of the standard generator
230 /* Precomputation for the group generator. */
1044 * of the generator, using certain (large) precomputed multiples in g_pre_comp.
1061 * of multiples of the generator (two in each of the last 28 rounds)
1071 /* add multiples of the generator */
1307 /* Computes scalar*generator + \sum scalars[i]*points[i], ignoring NULL values
1330 EC_POINT *generator = NULL;
1354 generator = EC_POINT_new(group);
1355 if (generator == NULL)
1357 /* get the generator from precomputation */
1366 generator, x, y, z, ctx))
1368 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1369 /* precomputation matches generator */
1373 * treat the generator as a random point */
1402 /* the generator */
1459 /* the scalar for the generator */
1478 /* do the multiplication with generator precomputation*/
1486 /* do the multiplication without generator precomputation */
1504 if (generator != NULL)
1505 EC_POINT_free(generator);
1524 EC_POINT *generator = NULL;
1536 /* get the generator */
1537 if (group->generator == NULL) goto err;
1538 generator = EC_POINT_new(group);
1539 if (generator == NULL)
1543 if (!EC_POINT_set_affine_coordinates_GFp(group, generator, x, y, ctx))
1547 /* if the generator is the standard one, use built-in precomputation */
1548 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1554 if ((!BN_to_felem(pre->g_pre_comp[0][1][0], &group->generator->X)) ||
1555 (!BN_to_felem(pre->g_pre_comp[0][1][1], &group->generator->Y)) ||
1556 (!BN_to_felem(pre->g_pre_comp[0][1][2], &group->generator->Z)))
1637 if (generator != NULL)
1638 EC_POINT_free(generator);