Class: ECC::IntegerOp

Inherits:
Object
  • Object
show all
Defined in:
lib/elliptic-lite/base.rb

Overview

change to IntegerFieldOp or such - why? why not?

Class Method Summary collapse

Class Method Details

.add(a, b) ⇒ Object



14
# File 'lib/elliptic-lite/base.rb', line 14

def self.add( a, b ) a + b;  end

.div(a, b) ⇒ Object



18
# File 'lib/elliptic-lite/base.rb', line 18

def self.div( a, b ) a / b;  end

.mul(a, b) ⇒ Object



16
# File 'lib/elliptic-lite/base.rb', line 16

def self.mul( a, b ) a * b;  end

.pow(a, exponent) ⇒ Object



17
# File 'lib/elliptic-lite/base.rb', line 17

def self.pow( a, exponent ) a.pow( exponent ); end

.sub(a, b) ⇒ Object



15
# File 'lib/elliptic-lite/base.rb', line 15

def self.sub( a, b ) a - b;  end