123456789_123456789_123456789_123456789_123456789_

Class: OpenSSL::PKey::EC::Point

Relationships & Source Files
Namespace Children
Exceptions:
Inherits: Object
Defined in: ext/openssl/ossl_pkey_ec.c

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(point) .new(group) .new(group, bn)

See the ::OpenSSL documentation for EC_POINT_*

Instance Attribute Details

#infinity?Boolean (readonly)

#on_curve?Boolean (readonly)

Instance Method Details

#eql?(point2) ⇒ Boolean #==(point2) ⇒ Boolean
Also known as: #eql?

#eql?(point2) ⇒ Boolean #==(point2) ⇒ Boolean

Alias for #==.

#invert!self

#make_affine!self

#mul(bn1 [, bn2]) ⇒ Point #mul(bns, points [, bn2]) ⇒ Point

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.

The second form calculates bns[0] * point + bns[1] * points[0] + ... + bns[-1] * points[-1] + bn2 * G. bn2 may be omitted. bns must be an array of ::OpenSSL::BN. points must be an array of Point. Please note that points[0] is not multiplied by bns[0], but bns[1].

#set_to_infinity!self

#to_bn(conversion_form = nil) ⇒ OpenSSL::BN

Convert the ::OpenSSL::PKey::EC point into an octet string and store in an ::OpenSSL::BN. If conversion_form is given, the point data is converted using the specified form. If not given, the default form set in the Group object is used.

See also EC::Point#point_conversion_form=.