summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-21 13:46:49 -0400
committerOri Bernstein <ori@eigenstate.org>2015-08-24 22:10:06 -0700
commit18da4d07e56cdbc6f6e170c4023c4c7d9ca0bd3e (patch)
treeb10dad92d0c31c1a899ebb3daafde9e9a8302a6f
parent0f95e4517ef3aa5d719b0ba8a20e8c64e96b0c46 (diff)
downloadmc-18da4d07e56cdbc6f6e170c4023c4c7d9ca0bd3e.tar.gz
Add missing test file
-rw-r--r--libcryptohash/test/sha384-test.myr14
1 files changed, 14 insertions, 0 deletions
diff --git a/libcryptohash/test/sha384-test.myr b/libcryptohash/test/sha384-test.myr
new file mode 100644
index 0000000..1b2ae9c
--- /dev/null
+++ b/libcryptohash/test/sha384-test.myr
@@ -0,0 +1,14 @@
+use std
+use cryptohash
+
+use "printhash.use"
+
+const main = {
+ print(cryptohash.sha384("")[:])
+ print(cryptohash.sha384("h")[:])
+ /* 64 byte block */
+ print(cryptohash.sha384("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")[:])
+ /* tail spanning */
+ print(cryptohash.sha384("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb")[:])
+}
+