summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-30 20:33:39 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-30 20:33:39 -0800
commit69225171f63708048bbc09c0d4a6c6485229ce72 (patch)
treeb3d210c7ec9b7a95e251e217ccffe5d621645eab /lib/crypto
parent39331f834db694be103a7ecb1aac3ba2cc5279fc (diff)
downloadmc-69225171f63708048bbc09c0d4a6c6485229ce72.tar.gz
Fix test deps for crypto.
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/bld.sub3
-rw-r--r--lib/crypto/test/chacha20.myr3
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/crypto/bld.sub b/lib/crypto/bld.sub
index 402634b..e40bf7d 100644
--- a/lib/crypto/bld.sub
+++ b/lib/crypto/bld.sub
@@ -33,4 +33,7 @@ lib testutil {noinst} =
testdeps =
testutil
../testr:testr
+ ../sys:sys
+ ../iter:iter
+ ../std:std
;;
diff --git a/lib/crypto/test/chacha20.myr b/lib/crypto/test/chacha20.myr
index 7ca349f..d271693 100644
--- a/lib/crypto/test/chacha20.myr
+++ b/lib/crypto/test/chacha20.myr
@@ -1,6 +1,7 @@
use std
use testr
use crypto
+use iter
type check = struct
key : byte[:]
@@ -848,7 +849,7 @@ const check = {chk
crypto.chacha20keysetup(&st, chk.key)
crypto.chacha20ivsetup(&st, chk.iv)
- for (i, s) : std.byenum(chk.state)
+ for (i, s) : iter.byenum(chk.state)
std.assert(st.input[i] == s, "mismatched state\n")
;;