EC_GROUP_set_generator

Sets the generator and its order/cofactor of a EC_GROUP object.

Synopsis

Declared in <openssl/ec.h>

int
EC_GROUP_set_generator(
    EC_GROUP* group,
    EC_POINT const* generator,
    BIGNUM const* order,
    BIGNUM const* cofactor);

Return Value

1 on success and 0 if an error occurred

Parameters

NameDescription
groupEC_GROUP object
generatorEC_POINT object with the generator.
orderthe order of the group generated by the generator.
cofactorthe index of the sub-group generated by the generator in the group of all points on the elliptic curve.