def CrSha2.sha256

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

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

43# The digests in one call
44def CrSha2.sha256(o: B.Octets) -> B.Octets:
45  B.Octets.of_list(Hc.sha256(B.Octets.to_list(o)))

Uses (4)

Used by (19)