def iota
bend-collections@1.0.0.0 · spec/crypto/keccak/permutation.bend:72
import bend-collections@1.0.0.0/spec/crypto/keccak/permutation.bend as Permutation
import Base
import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T
72def iota(s: T.State, rc: T.Lane) -> T.State:
73 match s:
74 case T.S{a0,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24}:
75 T.S{xor(a0,rc),a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24}