Closed alextwoods closed 2 weeks ago
It looks like the OpenSSL::PKey::EC::Point class is missing the mul method. It does look like bouncy castle's ECPoint class does support multiply.
OpenSSL::PKey::EC::Point
mul
require 'openssl' group = OpenSSL::PKey::EC::Group.new('prime256v1') new_point = group.generator.mul(2)
# <OpenSSL::PKey::EC::Point>
In cRuby:
require 'openssl' group = OpenSSL::PKey::EC::Group.new('prime256v1') new_point = group.generator.mul(2) # returns <OpenSSL::PKey::EC::Point:0x000000010dc80218 @group=#<OpenSSL::PKey::EC::Group:0x000000010dc80268>>
undefined method `mul' for #<OpenSSL::PKey::EC::Point:0x1f39b3ba> (NoMethodError)
Shouldn't be too hard to add with BC already implementing it.
Ok less easy since we are not using the BC ECPoint class in this impl. I'm trying to sort it out now.
It looks like the
OpenSSL::PKey::EC::Point
class is missing themul
method. It does look like bouncy castle's ECPoint class does support multiply.Steps to reproduce
Expected Result
In cRuby:
Actual result
Version