def CrSha2.update

bend-osdev-crypto@0.1.0.0 · inst_sha2.bend:31

import bend-osdev-crypto@0.1.0.0/inst_sha2.bend as InstSha2
import 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))}

Uses (4)

Used by (8)