def bf.fill_p.go

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

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

299def bf.fill_p.go(n: Nat, +i: Nat, +ps: List<&2, U32>, +t: LcBfTabs, c: L.LcBlock64) -> LcBfSt:
300  match n:
301    case 0n:
302      match c:
303        case L.LcBlock64{+h, +l}:
304          LcBfSt{bf.set_p(i, ps, h, l), t, L.LcBlock64{h, l}}
305    case 1n+m:
306      match c:
307        case L.LcBlock64{+h, +l}:
308          +ps2 = bf.set_p(i, ps, h, l)
309          bf.fill_p.go(m, Nat.add(i, 2n), ps2, t, bf.run(bf.ops(16n, ps2, t), L.LcBlock64{h, l}))

Uses (10)

Used by (1)