shithub: mc

ref: 7680e160787aad4408be9535856f4c3a2ba72337
dir: /libcryptohash/test/sha384-test.myr/

View raw version
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")[:])
}