Skip to content

Instantly share code, notes, and snippets.

@udonchan
Created July 28, 2010 13:17
Show Gist options
  • Save udonchan/494467 to your computer and use it in GitHub Desktop.
Save udonchan/494467 to your computer and use it in GitHub Desktop.
楕円曲線自体はハードコーディングした
module ECC
MOD = 1049
ORD = 1033
class EC_func
def self.l(y)
y**2
end
def self.dif_l(y)
2 * y
end
def self.r(x)
x**3 + 5*x + 109
end
def self.dif_r(x)
3 * x**2 + 5
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment