def aria.block

bend-osdev-legacy-ciphers@0.1.0.0 · aria.bend:4571

import bend-osdev-legacy-ciphers@0.1.0.0/aria.bend as Aria
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L

4571# a block of 16 bytes from offset i of xs
4572def aria.block(+xs: List<&2, U32>, +i: Nat) -> M.CmBlock:
4573  M.CmBlock{L.lc.be(L.lc.at(xs, i), L.lc.at(xs, Nat.add(i, 1n)), L.lc.at(xs, Nat.add(i, 2n)), L.lc.at(xs, Nat.add(i, 3n))), L.lc.be(L.lc.at(xs, Nat.add(i, 4n)), L.lc.at(xs, Nat.add(i, 5n)), L.lc.at(xs, Nat.add(i, 6n)), L.lc.at(xs, Nat.add(i, 7n))), L.lc.be(L.lc.at(xs, Nat.add(i, 8n)), L.lc.at(xs, Nat.add(i, 9n)), L.lc.at(xs, Nat.add(i, 10n)), L.lc.at(xs, Nat.add(i, 11n))), L.lc.be(L.lc.at(xs, Nat.add(i, 12n)), L.lc.at(xs, Nat.add(i, 13n)), L.lc.at(xs, Nat.add(i, 14n)), L.lc.at(xs, Nat.add(i, 15n)))}

Uses (7)

Used by (1)