shithub: mc

ref: d03fc800fc2ad91ee41e05c0145281cd7b11d77d
dir: /libcryptohash/test/sha224-test.myr/

View raw version
use std
use cryptohash

use "printhash.use"

const main = {
	print(cryptohash.sha224("")[:])
	print(cryptohash.sha224("h")[:])
	/* 64 byte block */
	print(cryptohash.sha224("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")[:])
	/* tail spanning */
	print(cryptohash.sha224("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabbbbb")[:])
}