summaryrefslogtreecommitdiff
path: root/lib/cryptohash/test/util.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-11-24 16:28:24 -0800
committerOri Bernstein <ori@eigenstate.org>2016-11-24 16:44:21 -0800
commit6c434100fac87e19234389aba2329165827d0711 (patch)
treec76963ca6d2dd9ba8d65da1f64117945b472e978 /lib/cryptohash/test/util.myr
parent49f27bf2a929c681f40752da7329e377030198a3 (diff)
downloadmc-6c434100fac87e19234389aba2329165827d0711.tar.gz
Rename 'libcryptohash' to 'libcrypto'
The ciphers are coming. Hold on to your hats. The ciphers are coming.
Diffstat (limited to 'lib/cryptohash/test/util.myr')
-rw-r--r--lib/cryptohash/test/util.myr19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/cryptohash/test/util.myr b/lib/cryptohash/test/util.myr
deleted file mode 100644
index ceb411c..0000000
--- a/lib/cryptohash/test/util.myr
+++ /dev/null
@@ -1,19 +0,0 @@
-use std
-
-pkg =
- const hasheq : (got : byte[:], expected : byte[:] -> void)
-;;
-
-const hasheq = {got, expected
- var sb, str
-
- sb = std.mksb()
- for x in got
- std.sbfmt(sb, "{p=0,w=2,x}", x)
- ;;
- str = std.sbfin(sb)
- if (!std.sleq(str, expected))
- std.fatal("mismatched hashes:\n\tgot:\t{}\n\texpected:\t{}\n", str, expected)
- ;;
- std.slfree(str)
-}