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

Inherits:
Object
  • Object
show all
Defined in:
lib/contracthashtool.rb

Overview

monkey patch EC::Point

Instance Method Summary collapse

Instance Method Details

#add(point) ⇒ Object



102
103
104
105
# File 'lib/contracthashtool.rb', line 102

def add(point)
  sum_point_hex = EC_ADD.add(self, point)
  self.class.new group, OpenSSL::BN.new(sum_point_hex, 16)
end