def round_keys
import bend-collections@1.0.0.0/src/crypto/aes/aes.bend as Aesimport Base
import bend-collections@1.0.0.0/src/crypto/aes/types.bend as T
137# Four consecutive words make a round key.
138def round_keys(ws: List<&2, T.Quad>) -> List<&2, T.State>:
139 match ws:
140 case w0 <> w1 <> w2 <> w3 <> rest:
141 T.S{w0, w1, w2, w3} <> round_keys(rest)
142 case _:
143 Nil{}