ref: f16bf0e4f8dd5f23b41cfbfa6c24fd0ab79e6dad
dir: /libcryptohash/test/sha224-test.myr/
use std use cryptohash const main = { print(cryptohash.sha224("")) print(cryptohash.sha224("h")) /* 64 byte block */ print(cryptohash.sha224("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")) /* tail spanning */ print(cryptohash.sha224("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb")) } const print = {b for x in b if (x <= 0xf) std.put("0%xb", x) else std.put("%xb", x) ;; ;; std.put("\n") }