Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OTRv4
little-ed448-Goldilocks
Commits
0e5b8e06
Unverified
Commit
0e5b8e06
authored
Feb 06, 2018
by
Sofia Celi
⛸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of debug statements for sage test
parent
87801e0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
test/test_decaf.sage
test/test_decaf.sage
+0
-6
No files found.
test/test_decaf.sage
View file @
0e5b8e06
...
...
@@ -168,7 +168,6 @@ class DecafScalar():
@classmethod
def random(cls):
print "lol"
while True:
try: return cls.deser(random_array(56))
except Exception: pass
...
...
@@ -225,9 +224,7 @@ class DecafPoint():
buffer = (c_uint8*int(56)).from_buffer_copy(str)
cstruct = DecafPoint._UNDER()
ret = DECAF.decaf_448_point_decode(cstruct,buffer,c_uint64(-1))
print(ret)
if ret != -1:
print "invalid point"
raise Exception("Point didn't decode")
return cstruct
...
...
@@ -297,7 +294,6 @@ class DecafPoint():
try: cstruct = cls._c_deser(str)
except Exception: good = False
print("the bool", good)
good2 = True
try: point = cls._sage_deser(str)
except Exception: good2 = False
...
...
@@ -305,13 +301,11 @@ class DecafPoint():
if good != good2:
raise Exception("C and SAGE don't agree")
elif good == False:
print "not a good decode"
raise Exception("Point didn't decode")
return cls(cstruct,point)
@classmethod
def random(cls):
# this is not correctly handled
while True:
try: return cls.deser(random_array(56))
except Exception: pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment