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