Lines Matching defs:generator

1386  * of the generator, using certain (large) precomputed multiples in g_pre_comp.
1402 * of multiples of the generator (last quarter of rounds)
1412 /* add multiples of the generator */
1476 /* Precomputation for the group generator. */
1692 /* Computes scalar*generator + \sum scalars[i]*points[i], ignoring NULL values
1714 EC_POINT *generator = NULL;
1738 generator = EC_POINT_new(group);
1739 if (generator == NULL)
1741 /* get the generator from precomputation */
1750 generator, x, y, z, ctx))
1752 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1753 /* precomputation matches generator */
1757 * treat the generator as a random point */
1787 * the generator */
1844 /* the scalar for the generator */
1863 /* do the multiplication with generator precomputation*/
1871 /* do the multiplication without generator precomputation */
1889 if (generator != NULL)
1890 EC_POINT_free(generator);
1909 EC_POINT *generator = NULL;
1921 /* get the generator */
1922 if (group->generator == NULL) goto err;
1923 generator = EC_POINT_new(group);
1924 if (generator == NULL)
1928 if (!EC_POINT_set_affine_coordinates_GFp(group, generator, x, y, ctx))
1932 /* if the generator is the standard one, use built-in precomputation */
1933 if (0 == EC_POINT_cmp(group, generator, group->generator, ctx))
1939 if ((!BN_to_felem(pre->g_pre_comp[1][0], &group->generator->X)) ||
1940 (!BN_to_felem(pre->g_pre_comp[1][1], &group->generator->Y)) ||
1941 (!BN_to_felem(pre->g_pre_comp[1][2], &group->generator->Z)))
2004 if (generator != NULL)
2005 EC_POINT_free(generator);