Aes.sub_word: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend as Aes Lines 116-120 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend&start_line=116&end_line=120 import Base import bend-collections-laws-crypto@1.0.0.0/src/crypto/aes/types.bend as T # Section 5.1.1: SubBytes applies the S-box to every byte of the state. def sub_word(w: T.Quad) -> T.Quad: match w: case T.W{a, b, c, d}: T.W{sbox(a), sbox(b), sbox(c), sbox(d)} Uses (2): https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend&name=sbox https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/aes/types.bend&name=Quad