def xor_word
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend as Aesimport Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/aes/types.bend as T
149def xor_word(a: T.Quad, b: T.Quad) -> T.Quad:
150 match a b:
151 case T.W{a0, a1, a2, a3} T.W{b0, b1, b2, b3}:
152 T.W{U32.xor(a0, b0), U32.xor(a1, b1), U32.xor(a2, b2), U32.xor(a3, b3)}
Uses (2)
Used by (7)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes:add_round_key
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/cipher:ark_ok
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/cipher:xor_word_ok
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes:transform
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes:next_word
- …