Tea.tea.op: def of bend-osdev-legacy-ciphers@0.1.0.0 Import: import bend-osdev-legacy-ciphers@0.1.0.0/tea.bend as Tea Lines 41-62 of bend-osdev-legacy-ciphers@0.1.0.0/tea.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tea.bend&start_line=41&end_line=62 import Base import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L def tea.op(o: LcTeaOp, b: L.LcBlock64) -> L.LcBlock64: match o: case LcTeaY{s, ka, kb}: match b: case L.LcBlock64{y, +z}: L.LcBlock64{U32.add(y, tea.g(z, s, ka, kb)), z} case LcTeaZ{s, ka, kb}: match b: case L.LcBlock64{+y, z}: L.LcBlock64{y, U32.add(z, tea.g(y, s, ka, kb))} case LcXteaY{c}: match b: case L.LcBlock64{y, +z}: L.LcBlock64{U32.add(y, xtea.g(z, c)), z} case LcXteaZ{c}: match b: case L.LcBlock64{+y, z}: L.LcBlock64{y, U32.add(z, xtea.g(y, c))} case LcTeaBswap{}: match b: case L.LcBlock64{y, z}: L.LcBlock64{L.lc.bswap.bits(y), L.lc.bswap.bits(z)} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend&name=LcBlock64 https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend&name=lc.bswap.bits https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tea.bend&name=LcTeaOp https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tea.bend&name=tea.g https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tea.bend&name=xtea.g