[#EC_GROUP_set_generator] = EC_GROUP_set_generator :mrdocs: Sets the generator and its order/cofactor of a EC_GROUP object. == Synopsis Declared in `<openssl/ec.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EC_GROUP_set_generator( xref:EC_GROUP.adoc[EC_GROUP]* group, xref:EC_POINT.adoc[EC_POINT] const* generator, xref:BIGNUM.adoc[BIGNUM] const* order, xref:BIGNUM.adoc[BIGNUM] const* cofactor); ---- == Return Value 1 on success and 0 if an error occurred == Parameters [cols="1,4"] |=== | Name| Description | *group* | EC_GROUP object | *generator* | EC_POINT object with the generator. | *order* | the order of the group generated by the generator. | *cofactor* | the index of the sub‐group generated by the generator in the group of all points on the elliptic curve. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#