Camellia.cam.p: def of bend-osdev-legacy-ciphers@0.1.0.0 Import: import bend-osdev-legacy-ciphers@0.1.0.0/camellia.bend as Camellia Lines 85-94 of bend-osdev-legacy-ciphers@0.1.0.0/camellia.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/camellia.bend&start_line=85&end_line=94 import Base import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L def cam.p(+t1: U32, +t2: U32, +t3: U32, +t4: U32, +t5: U32, +t6: U32, +t7: U32, +t8: U32) -> L.LcBlock64: +y1 = U32.xor(U32.xor(U32.xor(t1, t3), U32.xor(t4, t6)), U32.xor(t7, t8)) +y2 = U32.xor(U32.xor(U32.xor(t1, t2), U32.xor(t4, t5)), U32.xor(t7, t8)) +y3 = U32.xor(U32.xor(U32.xor(t1, t2), U32.xor(t3, t5)), U32.xor(t6, t8)) +y4 = U32.xor(U32.xor(U32.xor(t2, t3), U32.xor(t4, t5)), U32.xor(t6, t7)) +y5 = U32.xor(U32.xor(U32.xor(t1, t2), t6), U32.xor(t7, t8)) +y6 = U32.xor(U32.xor(U32.xor(t2, t3), t5), U32.xor(t7, t8)) +y7 = U32.xor(U32.xor(U32.xor(t3, t4), t5), U32.xor(t6, t8)) +y8 = U32.xor(U32.xor(U32.xor(t1, t4), t5), U32.xor(t6, t7)) L.LcBlock64{L.lc.be(y1, y2, y3, y4), L.lc.be(y5, y6, y7, y8)} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor 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.be