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::Point#to_bn
point.to_bn([conversion_form]) → OpenSSL::BN
ext/openssl/lib/openssl/pkey.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/openssl/lib/openssl/pkey.rb, line 33
def to_bn(conversion_form = group.point_conversion_form)
OpenSSL::BN.new(to_octet_string(conversion_form), 2)
end
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.