class OpenSSL::PKey::EC::Point
Public Class Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6999
def initialize: (self point) -> void
| (Group group, ?String | BN encoded_point) -> void
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.
Public Instance Methods
(self point) → self
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6892
def add: (self point) -> self
Performs elliptic curve point addition.
(self other) → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6900
def eql?: (self other) -> bool
() → Group
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6902
def group: () -> Group
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6909
def infinity?: () -> bool
(self) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 7007
def initialize_copy: (self) -> void
() → self
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6916
def invert!: () -> self
() → self
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6924
def make_affine!: () -> self
This method is deprecated and should not be used. This is a no-op.
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6940
def mul: (bn bn1, ?bn bn2) -> self
| (Array[bn] bns, Array[self], ?bn bn2) -> self
Performs elliptic curve point multiplication.
The first form calculates bn1 * point + bn2 * G, where G is the generator of the group of point. bn2 may be omitted, and in that case, the result is just bn1 * point.
Before version 4.0.0, and when compiled with OpenSSL 1.1.1 or older, this method allowed another form: point.mul(bns, points [, bn2]) => point
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6948
def on_curve?: () -> bool
() → self
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6955
def set_to_infinity!: () -> self
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6969
def to_bn: (?point_conversion_format conversion_form) -> BN
Returns the octet string representation of the EC point as an instance of OpenSSL::BN.
If conversion_form is not given, the point_conversion_form attribute set to the group is used.
See to_octet_string for more information.
(point_conversion_format) → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/openssl/0/openssl.rbs, line 6983
def to_octet_string: (point_conversion_format) -> String
Returns the octet string representation of the elliptic curve point.
conversion_form specifies how the point is converted. Possible values are:
-
:compressed -
:uncompressed -
:hybrid