class ECC::IntegerOp

Public Class Methods

add( a, b ) click to toggle source
# File lib/elliptic-lite/base.rb, line 14
def self.add( a, b ) a + b;  end
div( a, b ) click to toggle source
# File lib/elliptic-lite/base.rb, line 18
def self.div( a, b ) a / b;  end
mul( a, b ) click to toggle source
# File lib/elliptic-lite/base.rb, line 16
def self.mul( a, b ) a * b;  end
pow( a, exponent ) click to toggle source
# File lib/elliptic-lite/base.rb, line 17
def self.pow( a, exponent ) a.pow( exponent ); end
sub( a, b ) click to toggle source
# File lib/elliptic-lite/base.rb, line 15
def self.sub( a, b ) a - b;  end