summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
commit492aca3ff6f829ee09c52e17c86a808430ee7df4 (patch)
treef97424e14c9d3277c78ff53082daec725e1f4dcb /lib/crypto
parent11f79ed8ff75049f6b1866d70bc032c8d18b1463 (diff)
downloadmc-492aca3ff6f829ee09c52e17c86a808430ee7df4.tar.gz
Convert from `in` to `:`.
The winds of change are a-blowin.
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/test/aes.myr16
-rw-r--r--lib/crypto/test/chacha20.myr2
-rw-r--r--lib/crypto/test/util.myr2
3 files changed, 10 insertions, 10 deletions
diff --git a/lib/crypto/test/aes.myr b/lib/crypto/test/aes.myr
index 46c5a64..1ad9036 100644
--- a/lib/crypto/test/aes.myr
+++ b/lib/crypto/test/aes.myr
@@ -8,28 +8,28 @@ type aestest = struct
;;
const main = {
- for tc in ECBVarKey128encvecs
+ for tc : ECBVarKey128encvecs
enctest(tc)
;;
- for tc in ECBVarKey192encvecs
+ for tc : ECBVarKey192encvecs
enctest(tc)
;;
- for tc in ECBVarKey256encvecs
+ for tc : ECBVarKey256encvecs
enctest(tc)
;;
- for tc in ECBVarKey128decvecs
+ for tc : ECBVarKey128decvecs
dectest(tc)
;;
- for tc in ECBVarKey192decvecs
+ for tc : ECBVarKey192decvecs
dectest(tc)
;;
- for tc in ECBVarKey256decvecs
+ for tc : ECBVarKey256decvecs
dectest(tc)
;;
- for tc in ECBVarKey128encbigvecs
+ for tc : ECBVarKey128encbigvecs
bigenctest(tc)
;;
- for tc in ECBVarKey128decbigvecs
+ for tc : ECBVarKey128decbigvecs
bigdectest(tc)
;;
}
diff --git a/lib/crypto/test/chacha20.myr b/lib/crypto/test/chacha20.myr
index e9c09f4..7ca349f 100644
--- a/lib/crypto/test/chacha20.myr
+++ b/lib/crypto/test/chacha20.myr
@@ -848,7 +848,7 @@ const check = {chk
crypto.chacha20keysetup(&st, chk.key)
crypto.chacha20ivsetup(&st, chk.iv)
- for (i, s) in std.byenum(chk.state)
+ for (i, s) : std.byenum(chk.state)
std.assert(st.input[i] == s, "mismatched state\n")
;;
diff --git a/lib/crypto/test/util.myr b/lib/crypto/test/util.myr
index ceb411c..e6a3211 100644
--- a/lib/crypto/test/util.myr
+++ b/lib/crypto/test/util.myr
@@ -8,7 +8,7 @@ const hasheq = {got, expected
var sb, str
sb = std.mksb()
- for x in got
+ for x : got
std.sbfmt(sb, "{p=0,w=2,x}", x)
;;
str = std.sbfin(sb)