def LcSm4.decrypt
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
140def LcSm4.decrypt(k: LcSm4Key, b: M.CmBlock) -> M.CmBlock:
141 match k:
142 case LcSm4Key{+tab, rks}:
143 sm4.unrounds(tab, rks, sm4.rev(b))