Keccak.digest: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/keccak/keccak.bend as Keccak Lines 315-327 of bend-collections@1.0.0.0/src/crypto/keccak/keccak.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/keccak/keccak.bend&start_line=315&end_line=327 import Base import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T def digest(s: T.State) -> Array: match s: case T.S{T.W{l0,h0},T.W{l1,h1},T.W{l2,h2},T.W{l3,h3},a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24}: a = Array.new(U32,3n,0) a = Array.set(U32,a,0,l0) a = Array.set(U32,a,1,h0) a = Array.set(U32,a,2,l1) a = Array.set(U32,a,3,h1) a = Array.set(U32,a,4,l2) a = Array.set(U32,a,5,h2) a = Array.set(U32,a,6,l3) a = Array.set(U32,a,7,h3) a Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.new https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Array.set https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/keccak/types.bend&name=Lane https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/crypto/keccak/types.bend&name=State