shithub: mc

ref: 767534bdbac53853d443aaf095814c687fb5f486
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)
	;;
;;