def feistel

bend-osdev-cipher-core@0.1.0.0 · check.bend:71

import bend-osdev-cipher-core@0.1.0.0/check.bend as Check
import Base
import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L

71def feistel(+b: L.LcBlock64) -> String:
72  +ks = {[1, 2, 3, 4, 5, 6, 7, 8] : List<&2, U32>}
73  +c = L.lc.fe.run(~U32, ~toy_f, ks, b)
74  L.LcBlock64.hex(c) ++ " " ++ L.LcBlock64.hex(L.lc.fe.unrun(~U32, ~toy_f, ks, c))

Uses (9)

Used by (1)