shithub: mc

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