def CrSha2.update
import bend-osdev-crypto@0.1.0.0/inst_sha2.bend as InstSha2import 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 state after more bytes (either hash: the state knows which it is)
32def CrSha2.update(s: CrSha2State, o: B.Octets) -> CrSha2State:
33 match s:
34 case CrSha2State{h}:
35 CrSha2State{Hc.update(h, B.Octets.to_list(o))}