def cam.w

bend-osdev-legacy-ciphers@0.1.0.0 · camellia.bend:293

import bend-osdev-legacy-ciphers@0.1.0.0/camellia.bend as Camellia
import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L

293# word i (big-endian) of the key bytes xs
294def cam.w(+xs: List<&2, U32>, +i: Nat) -> U32:
295  +j = Nat.mul(4n, i)
296  L.lc.be(L.lc.at(xs, j), L.lc.at(xs, Nat.add(j, 1n)), L.lc.at(xs, Nat.add(j, 2n)), L.lc.at(xs, Nat.add(j, 3n)))

Uses (7)

Used by (3)