instance method
OpenSSL::PKey::EC::Point#to_bn
(?::OpenSSL::PKey::EC::point_conversion_format conversion_form) -> ::OpenSSL::BN
point.to_bn([conversion_form]) → OpenSSL::BN
ext/openssl/lib/openssl/pkey.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/openssl/lib/openssl/pkey.rb, line 330
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.