Function EC_GROUP_set_generator

Source
pub unsafe extern "C" fn EC_GROUP_set_generator(
    group: *mut ec_group_st,
    generator: *const ec_point_st,
    order: *const bignum_st,
    cofactor: *const bignum_st,
) -> i32
Expand description

Sets the generator and its order/cofactor of a EC_GROUP object. \param group EC_GROUP object \param generator EC_POINT object with the generator. \param order the order of the group generated by the generator. \param cofactor the index of the sub-group generated by the generator in the group of all points on the elliptic curve. \return 1 on success and 0 if an error occurred