shithub: mc

ref: 18da4d07e56cdbc6f6e170c4023c4c7d9ca0bd3e
dir: /libcryptohash/test/sha512-test.myr/

View raw version
use std
use cryptohash

use "printhash.use"

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