Lines Matching defs:generator

66 /* structure for precomputed multiples of the generator */
72 * generator multiplies, in the Montgomery domain. Pre-calculated
149 /* Precomputed tables for the default generator */
801 * ecp_nistz256_is_affine_G returns one if |generator| is the standard, P-256
802 * generator.
804 static int ecp_nistz256_is_affine_G(const EC_POINT *generator)
806 return (bn_get_top(generator->X) == P256_LIMBS) &&
807 (bn_get_top(generator->Y) == P256_LIMBS) &&
808 is_equal(bn_get_words(generator->X), def_xG) &&
809 is_equal(bn_get_words(generator->Y), def_yG) &&
810 is_one(generator->Z);
823 const EC_POINT *generator;
834 generator = EC_GROUP_get0_generator(group);
835 if (generator == NULL) {
840 if (ecp_nistz256_is_affine_G(generator)) {
842 * No need to calculate tables for the standard generator because we
887 if (!EC_POINT_copy(T, generator))
913 if (!EC_POINT_add(group, T, T, generator, ctx))
963 const EC_POINT *generator = NULL;
985 generator = EC_GROUP_get0_generator(group);
986 if (generator == NULL) {
991 /* look if we can use precomputed multiples of generator */
996 * If there is a precomputed table for the generator, check that
997 * it was generated with the same generator.
1010 if (0 == EC_POINT_cmp(group, generator, pre_comp_generator, ctx))
1016 if (preComputedTable == NULL && ecp_nistz256_is_affine_G(generator)) {
1018 * If there is no precomputed data, but the generator is the
1122 * Without a precomputed table for the generator, it has to be
1140 new_points[num] = generator;
1276 /* There is a hard-coded table for the default generator. */
1277 const EC_POINT *generator = EC_GROUP_get0_generator(group);
1279 if (generator != NULL && ecp_nistz256_is_affine_G(generator)) {
1280 /* There is a hard-coded table for the default generator. */