Camellia.cam.fl: 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 103-108 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=103&end_line=108 import Base import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L # FL and FL^-1 (RFC 3713, 2.4.2) def cam.fl(x: L.LcBlock64, k: L.LcBlock64) -> L.LcBlock64: match x k: case L.LcBlock64{+x1, x2} L.LcBlock64{k1, k2}: +y2 = U32.xor(x2, L.lc.rotl(U32.and(x1, k1), 1n)) L.LcBlock64{U32.xor(x1, U32.or(y2, k2)), y2} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or 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.rotl