def sm4.fk
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
93# FK and CK_i (ck_(i,j) = (4i + j) * 7 mod 256)
94def sm4.fk(n: Nat) -> U32:
95 L.lc.at([2746333894, 1453994832, 1736282519, 2993693404], n)