Skip to content
Snippets Groups Projects
Commit 2f339b67 authored by Ben Adida's avatar Ben Adida
Browse files

fix bug, missing object

parent 74c132e9
No related branches found
No related tags found
No related merge requests found
...@@ -266,7 +266,7 @@ class EGPublicKey: ...@@ -266,7 +266,7 @@ class EGPublicKey:
if not (1 < self.g < self.p-1): if not (1 < self.g < self.p-1):
raise Exception("g out of range.") raise Exception("g out of range.")
if not (1 < self.y < p-1): if not (1 < self.y < self.p-1):
raise Exception("y out of range.") raise Exception("y out of range.")
if (pow(self.y,self.q,self.p)!=1): if (pow(self.y,self.q,self.p)!=1):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment