shithub: mc

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