def bf.fill_s

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

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

329# the S-box k's 256 entries replaced, two at a time (128 encryptions)
330def bf.fill_s(+k: Nat, s: LcBfSt) -> LcBfSt:
331  match s:
332    case LcBfSt{+ps, +t, b}:
333      bf.fill_s.go(127n, k, 0, ps, t, bf.run(bf.ops(16n, ps, t), b))

Uses (5)

Used by (1)