EC_GROUP_set_generator

Sets the generator and it's order/cofactor of a EC_GROUP object.

extern (C) nothrow @nogc
int
EC_GROUP_set_generator

Parameters

group .EC_GROUP*

EC_GROUP object

generator const(.EC_POINT)*

EC_POINT object with the generator.

order const(libressl_d.openssl.ossl_typ.BIGNUM)*

the order of the group generated by the generator.

cofactor const(libressl_d.openssl.ossl_typ.BIGNUM)*

the index of the sub-group generated by the generator in the group of all points on the elliptic curve.

Return Value

Type: int

1 on success and 0 if an error occured

Meta