shithub: mc

ref: 905f4d10a78e7e2f6eb849cf373b14cd78c87d73
dir: /lib/crypto/hash.myr/

View raw version
use std

pkg crypto =
	trait hash @a =
		Blocksz	: std.size
		Hashsz	: std.size

		hinit	: (h : @a# -> void)
		hadd	: (h : @a#, msg : byte[:] -> void)
		hfin	: (h : @a#, dst : byte[:] -> void)
	;;
;;