Skip to content

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

class method

OpenSSL::PKey::EC::Point.new

OpenSSL::PKey::EC::Point.new(point)
OpenSSL::PKey::EC::Point.new(group [, encoded_point])

Creates a new instance of OpenSSL::PKey::EC::Point. If the only argument is an instance of EC::Point, a copy is returned. Otherwise, creates a point that belongs to group.

encoded_point is the octet string representation of the point. This must be either a String or an OpenSSL::BN.

See also #== #add also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0