Unverified Commit 0e5b8e06 authored by Sofia Celi's avatar Sofia Celi

Get rid of debug statements for sage test

parent 87801e0e
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment