def rot_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
179# Section 5.2: RotWord, SubWord (sub_word above), and Rcon[j] = [x^(j-1), 0, 0, 0].
180def rot_word(w: T.Quad) -> T.Quad:
181 match w:
182 case T.W{a, b, c, d}:
183 T.W{b, c, d, a}