def aria.e0

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

import bend-osdev-legacy-ciphers@0.1.0.0/aria.bend as Aria
import Base

4132# BEGIN GENERATED by gen/tables.py: diffusion
4133# the steps: e<j> XORs byte b into each byte of its targets
4134def aria.e0(s: LcAriaSt) -> LcAriaSt:
4135  match s:
4136    case LcAriaSt{x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, x13, x14, +x15}:
4137      LcAriaSt{x0, Word.xor(8n, x1, x15), Word.xor(8n, x2, x15), x3, Word.xor(8n, x4, x15), Word.xor(8n, x5, x15), x6, x7, Word.xor(8n, x8, x15), x9, Word.xor(8n, x10, x15), x11, x12, x13, x14, x15}

Uses (2)

Used by (4)