PROOF.ecb_rt.tdes: def of bend-osdev-crypto@0.1.0.0 Import: import bend-osdev-crypto@0.1.0.0/PROOF.bend as PROOF Lines 827-834 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=827&end_line=834 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/tdes.bend as T 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.tdes(+k: T.LcTdesKey, bs: List<&2, L.LcBlock64>) -> {bs == Md.cr.ecb(~T.LcTdesKey, ~L.LcBlock64, ~T.LcTdes.decrypt, k, Md.cr.ecb(~T.LcTdesKey, ~L.LcBlock64, ~T.LcTdes.encrypt, k, bs)) : List<&2, L.LcBlock64>}: match bs: case Nil{}: {==} case Con{b, t}: %Equal.sym(L.LcBlock64, T.LcTdes.decrypt(k, T.LcTdes.encrypt(k, b)), b, LL.tdes_round_trip(k, b)) : {Con{b, t} == Con{_, Md.cr.ecb(~T.LcTdesKey, ~L.LcBlock64, ~T.LcTdes.decrypt, k, Md.cr.ecb(~T.LcTdesKey, ~L.LcBlock64, ~T.LcTdes.encrypt, k, t))} : List<&2, L.LcBlock64>} %ecb_rt.tdes(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=tdes_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/tdes.bend&name=LcTdes.decrypt https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tdes.bend&name=LcTdes.encrypt https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/tdes.bend&name=LcTdesKey