shithub: mc

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