Skip to content

OpenSSL::PKey::EC::Point missing mul method #306

Closed
@alextwoods

Description

@alextwoods

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.

Steps to reproduce

require 'openssl'
group = OpenSSL::PKey::EC::Group.new('prime256v1')
new_point = group.generator.mul(2)

Expected Result

# <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>>

Actual result

 undefined method `mul' for #<OpenSSL::PKey::EC::Point:0x1f39b3ba> (NoMethodError)

Version

  • JRuby: 9.4.5.0
  • jruby-openssl: jruby-openssl-0.14.6-java

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions