def xor
bend-collections-laws-crypto@1.0.0.0 · spec/crypto/argon2/blamka.bend:205
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/argon2/blamka.bend as Blamka
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/argon2/types.bend as A
205
206def xor(x: A.Block, y: A.Block) -> A.Block:
207 match x y:
208 case A.B{x0, x1, x2, x3, x4, x5, x6, x7} A.B{y0, y1, y2, y3, y4, y5, y6, y7}:
209 A.B{xor_state(x0, y0), xor_state(x1, y1), xor_state(x2, y2), xor_state(x3, y3), xor_state(x4, y4), xor_state(x5, y5), xor_state(x6, y6), xor_state(x7, y7)}