Skip to content
class method

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

(::OpenSSL::PKey::EC::Point point) -> ::OpenSSL::PKey::EC::Point
(::OpenSSL::PKey::EC::Group group, ?::String | ::OpenSSL::BN encoded_point) -> ::OpenSSL::PKey::EC::Point
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 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0