def sm4.unrounds

bend-osdev-legacy-ciphers@0.1.0.0 · sm4.bend:78

import bend-osdev-legacy-ciphers@0.1.0.0/sm4.bend as Sm4
import 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))

Uses (5)

Used by (4)