def sm4.rounds
import bend-osdev-legacy-ciphers@0.1.0.0/sm4.bend as Sm4import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
71def sm4.rounds(+tab: L.LcTab, rks: List<&2, U32>, s: M.CmBlock) -> M.CmBlock:
72 match rks:
73 case Nil{}:
74 s
75 case Con{k, t}:
76 sm4.rounds(tab, t, sm4.step(tab, k, s))