def sm4.unrounds
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
78def sm4.unrounds(+tab: L.LcTab, rks: List<&2, U32>, s: M.CmBlock) -> M.CmBlock:
79 match rks:
80 case Nil{}:
81 s
82 case Con{k, t}:
83 sm4.unstep(tab, k, sm4.unrounds(tab, t, s))