Sha.step: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/sha.bend as Sha Lines 120-124 of bend-collections@1.0.0.0/spec/crypto/sha.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/sha.bend&start_line=120&end_line=124 import Base import bend-collections@1.0.0.0/src/crypto/sha/state.bend as Types def step(s: Types.State, k: U32, w: U32) -> Types.State: Types.H{+a, +b, +c, d, +e, +f, +g, h} = s +t1 = (h + sum1(e) + ch(e, f, g) + k + w : U32) t2 = (sum0(a) + maj(a, b, c) : U32) Types.H{(t1 + t2 : U32), a, b, c, (d + t1 : U32), e, f, g} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha.bend&name=ch https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha.bend&name=maj https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha.bend&name=sum0 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/spec/crypto/sha.bend&name=sum1 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/sha/state.bend&name=State