Lines Matching refs:generator
102 ret->generator = NULL;
132 if (group->generator != NULL)
133 EC_POINT_free(group->generator);
155 if (group->generator != NULL)
156 EC_POINT_clear_free(group->generator);
200 if (src->generator != NULL)
202 if (dest->generator == NULL)
204 dest->generator = EC_POINT_new(dest);
205 if (dest->generator == NULL) return 0;
207 if (!EC_POINT_copy(dest->generator, src->generator)) return 0;
211 /* src->generator == NULL */
212 if (dest->generator != NULL)
214 EC_POINT_clear_free(dest->generator);
215 dest->generator = NULL;
284 int EC_GROUP_set_generator(EC_GROUP *group, const EC_POINT *generator, const BIGNUM *order, const BIGNUM *cofactor)
286 if (generator == NULL)
292 if (group->generator == NULL)
294 group->generator = EC_POINT_new(group);
295 if (group->generator == NULL) return 0;
297 if (!EC_POINT_copy(group->generator, generator)) return 0;
315 return group->generator;