def CrHmac.start
import bend-osdev-crypto@0.1.0.0/hmac.bend as Hmacimport Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
66# The tag in pieces: start, update for each piece, finish
67def CrHmac.start(~H: Data, ~init: H, ~update: H -> B.Octets -> H, kk: CrHmacKey) -> CrHmacState<H>:
68 match kk:
69 case CrHmacKey{i, o}:
70 CrHmacState{update(init, i), o}