def bf.tables

bend-osdev-legacy-ciphers@0.1.0.0 · blowfish.bend:339

import bend-osdev-legacy-ciphers@0.1.0.0/blowfish.bend as Blowfish
import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L

339# the S-boxes before the key: pi's words 18 to 1041
340def bf.tables(+pi: List<&2, U32>) -> LcBfTabs:
341  LcBfTabs{L.lc.tab(8n, bf.slice(pi, 18n, 256n)), L.lc.tab(8n, bf.slice(pi, 274n, 256n)), L.lc.tab(8n, bf.slice(pi, 530n, 256n)), L.lc.tab(8n, bf.slice(pi, 786n, 256n))}

Uses (5)

Used by (1)