def bf.key

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

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

348def bf.key(+xs: List<&2, U32>) -> LcBlowfishKey:
349  +pi = bf.pi.list()
350  +t = bf.tables(pi)
351  +s0 : LcBfSt = LcBfSt{bf.pkey(B.take(18n, pi), bf.cycle(72n, xs, xs)), t, L.LcBlock64{0, 0}}
352  bf.key.of(bf.fill_s(3n, bf.fill_s(2n, bf.fill_s(1n, bf.fill_s(0n, bf.fill_p(s0))))))

Uses (13)

Used by (1)