def G

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/argon2/blamka.bend:211

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

211# G(X, Y) = Z XOR R, where R = X XOR Y, Q = P on the rows of R and Z = P on
212# the columns of Q (RFC 9106 section 3.5).
213def G(x: A.Block, y: A.Block) -> A.Block:
214  +r = xor(x, y)
215  xor(cols(rows(r)), r)

Uses (4)

Used by (9)