Class: Rb25519::FField::EC25519

Inherits:
MontgomeryEC show all
Defined in:
lib/rb-pure25519.rb

Instance Attribute Summary collapse

Attributes inherited from MontgomeryEC

#a, #b

Attributes inherited from EC

#field

Instance Method Summary collapse

Methods inherited from MontgomeryEC

#double_point, #on_curve, #point_add, #pts, #scale_proj, #xz_double, #xz_from_xy, #xz_simple_add, #xz_to_xy

Methods inherited from EC

#naive_points, #on_curve, #point_add, #scale_double_add, #scale_naive

Constructor Details

#initializeEC25519

Returns a new instance of EC25519.



511
512
513
# File 'lib/rb-pure25519.rb', line 511

def initialize
  super(FField.new(2**255 - 19), a: 486662, b: 1 )
end

Instance Attribute Details

#genObject

Returns the value of attribute gen.



509
510
511
# File 'lib/rb-pure25519.rb', line 509

def gen
  @gen
end