def ecb_rt.xtea
bend-osdev-crypto@0.1.0.0 · PROOF.bend:1495
import bend-osdev-crypto@0.1.0.0/PROOF.bend as PROOF
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/xtea.bend as Xt
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
1495def ecb_rt.xtea(+k: Xt.LcXteaKey, bs: List<&2, L.LcBlock64>) -> {bs == Md.cr.ecb(~Xt.LcXteaKey, ~L.LcBlock64, ~Xt.LcXtea.decrypt, k, Md.cr.ecb(~Xt.LcXteaKey, ~L.LcBlock64, ~Xt.LcXtea.encrypt, k, bs)) : List<&2, L.LcBlock64>}:
1496 match bs:
1497 case Nil{}:
1498 {==}
1499 case Con{b, t}:
1500 %Equal.sym(L.LcBlock64, Xt.LcXtea.decrypt(k, Xt.LcXtea.encrypt(k, b)), b, LL.xtea_round_trip(k, b)) : {Con{b, t} == Con{_, Md.cr.ecb(~Xt.LcXteaKey, ~L.LcBlock64, ~Xt.LcXtea.decrypt, k, Md.cr.ecb(~Xt.LcXteaKey, ~L.LcBlock64, ~Xt.LcXtea.encrypt, k, t))} : List<&2, L.LcBlock64>}
1501 %ecb_rt.xtea(k, t) : {Con{b, t} == Con{b, _} : List<&2, L.LcBlock64>}
1502 {==}