def sm4.rounds

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

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

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))

Uses (5)

Used by (4)