PROOF.ecb_rt.tea: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/PROOF.bend as PROOF Lines 1442-1449 of bend-osdev-crypto@0.1.0.0/PROOF.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-crypto@0.1.0.0/PROOF.bend&start_line=1442&end_line=1449 import Base import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L import bend-osdev-legacy-ciphers@0.1.0.0/tea.bend as Te import bend-osdev-legacy-ciphers@0.1.0.0/LAWS.bend as LL import bend-osdev-crypto@0.1.0.0/modes.bend as Md def ecb_rt.tea(+k: Te.LcTeaKey, bs: List<&2, L.LcBlock64>) -> {bs == Md.cr.ecb(~Te.LcTeaKey, ~L.LcBlock64, ~Te.LcTea.decrypt, k, Md.cr.ecb(~Te.LcTeaKey, ~L.LcBlock64, ~Te.LcTea.encrypt, k, bs)) : List<&2, L.LcBlock64>}: match bs: case Nil{}: {==} case Con{b, t}: %Equal.sym(L.LcBlock64, Te.LcTea.decrypt(k, Te.LcTea.encrypt(k, b)), b, LL.tea_round_trip(k, b)) : {Con{b, t} == Con{_, Md.cr.ecb(~Te.LcTeaKey, ~L.LcBlock64, ~Te.LcTea.decrypt, k, Md.cr.ecb(~Te.LcTeaKey, ~L.LcBlock64, ~Te.LcTea.encrypt, k, t))} : List<&2, L.LcBlock64>} %ecb_rt.tea(k, t) : {Con{b, t} == Con{b, _} : List<&2, L.LcBlock64>} {==} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-osdev-crypto@0.1.0.0/modes.bend&name=cr.ecb https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/LAWS.bend&name=tea_round_trip 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/tea.bend&name=LcTea.decrypt https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tea.bend&name=LcTea.encrypt https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tea.bend&name=LcTeaKey