Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::EC::Group#set_generator

group.set_generator(generator, order, cofactor) => self

Sets the curve parameters. generator must be an instance of EC::Point that is on the curve. order and cofactor are integers.

See the OpenSSL documentation for EC_GROUP_set_generator()

See also #seed= #to_der #seed #to_pem also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1