def CrSha3.final
import bend-osdev-crypto@0.1.0.0/inst_sha3.bend as InstSha3import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-collections-laws-crypto@1.0.0.0/src/crypto/hash.bend as Hc
31# the digest of the bytes so far
32def CrSha3.final(s: CrSha3State) -> B.Octets:
33 match s:
34 case CrSha3State{h}:
35 B.Octets.of_list(Hc.digest(h))