def rot_word

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/aes/aes.bend:179

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/aes.bend as Aes
import 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}

Uses (1)

Used by (3)