ref: 18da4d07e56cdbc6f6e170c4023c4c7d9ca0bd3e
parent: 0f95e4517ef3aa5d719b0ba8a20e8c64e96b0c46
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jun 21 09:46:49 EDT 2014
Add missing test file
--- /dev/null
+++ b/libcryptohash/test/sha384-test.myr
@@ -1,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")[:])
+}
+