summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-03-31 00:00:47 -0700
committerOri Bernstein <ori@eigenstate.org>2018-03-31 00:00:47 -0700
commit8703e529a235c8315b6a25d5242a134456da0209 (patch)
tree095719ff0099c6f4e2da800015d5bc817223d3fb /lib/crypto
parent3e94feff3ad92eb18eea90696b6da15daf79d059 (diff)
downloadmc-8703e529a235c8315b6a25d5242a134456da0209.tar.gz
Comment out unused tests (oops)
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/test/ctbig.myr52
1 files changed, 26 insertions, 26 deletions
diff --git a/lib/crypto/test/ctbig.myr b/lib/crypto/test/ctbig.myr
index feee5dd..35914e0 100644
--- a/lib/crypto/test/ctbig.myr
+++ b/lib/crypto/test/ctbig.myr
@@ -24,18 +24,18 @@ const main = {
"5192296858534810493479828944327220",
"75557863709417659441940")
}],
- [.name="div", .fn={ctx
- do(ctx, div,
- "75557863709417659441940",
- "392318858376010676506814412592879878824393346033951606800",
- "5192296858534810493479828944327220")
- }],
- [.name="mod", .fn={ctx
- do(ctx, mod,
- "75557863709417659441940",
- "392318858376010676506814412592879878824393346033951606800",
- "5192296858534810493479828944327220")
- }],
+ //[.name="div", .fn={ctx
+ // do(ctx, div,
+ // "75557863709417659441940",
+ // "392318858376010676506814412592879878824393346033951606800",
+ // "5192296858534810493479828944327220")
+ //}],
+ //[.name="mod", .fn={ctx
+ // do(ctx, mod,
+ // "75557863709417659441940",
+ // "392318858376010676506814412592879878824393346033951606800",
+ // "5192296858534810493479828944327220")
+ //}],
//[.name="modpow", .fn={ctx
// r = do(ctx, crypto.ctsub,
// "5192296858459252629770411284885280"
@@ -46,20 +46,20 @@ const main = {
][:])
}
-const div = {r, a, b
- var z
-
- z = crypto.ctzero(a.nbit)
- crypto.ctdivmod(r, z, a, b)
-}
-
-const mod = {r, a, b
- var z
-
- z = crypto.ctzero(a.nbit)
- crypto.ctdivmod(z, r, a, b)
-}
-
+//const div = {r, a, b
+// var z
+//
+// z = crypto.ctzero(a.nbit)
+// crypto.ctdivmod(r, z, a, b)
+//}
+//
+//const mod = {r, a, b
+// var z
+//
+// z = crypto.ctzero(a.nbit)
+// crypto.ctdivmod(z, r, a, b)
+//}
+//
const do = {ctx, op, estr, astr, bstr
var r, a, ai, b, bi, e, ei