def chi

bend-collections@1.0.0.0 · spec/crypto/keccak/permutation.bend:9

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

9def chi(a: T.Lane, b: T.Lane, c: T.Lane) -> T.Lane:
10  match a b c:
11    case T.W{al,ah} T.W{bl,bh} T.W{cl,ch}:
12      T.W{U32.xor(al,U32.and(U32.xor(bl,4294967295),cl)),U32.xor(ah,U32.and(U32.xor(bh,4294967295),ch))}

Uses (3)

Used by (1)