def initial
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/core.bend as Coreimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/state.bend as S
8# SHA-256 for byte sequences. Each input U32 contributes its low 8 bits.
9# SHA-256 arithmetic is native U32, hence addition wraps modulo 2^32.
10def initial() -> S.State:
11 S.H{1779033703, 3144134277, 1013904242, 2773480762,
12 1359893119, 2600822924, 528734635, 1541459225}
Uses (1)
Used by (6)
- bend-collections-laws-crypto@1.0.0.0/src/crypto/hash:new_sha256
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/laws:Incremental.sha256
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/core:sha256
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/incremental:incremental256
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/hash/proof:oneshot256
- …