def sm4.tau
import bend-osdev-legacy-ciphers@0.1.0.0/sm4.bend as Sm4import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
44# tau: the S-box on each byte of a word
45def sm4.tau(+tab: L.LcTab, +a: U32) -> U32:
46 L.lc.be(sm4.s(tab, a, 3n), sm4.s(tab, a, 2n), sm4.s(tab, a, 1n), sm4.s(tab, a, 0n))