def ecb_rt.cast5
bend-osdev-crypto@0.1.0.0 · PROOF.bend:1389
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/cast5.bend as C5
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
1389def ecb_rt.cast5(+k: C5.LcCast5Key, bs: List<&2, L.LcBlock64>) -> {bs == Md.cr.ecb(~C5.LcCast5Key, ~L.LcBlock64, ~C5.LcCast5.decrypt, k, Md.cr.ecb(~C5.LcCast5Key, ~L.LcBlock64, ~C5.LcCast5.encrypt, k, bs)) : List<&2, L.LcBlock64>}:
1390 match bs:
1391 case Nil{}:
1392 {==}
1393 case Con{b, t}:
1394 %Equal.sym(L.LcBlock64, C5.LcCast5.decrypt(k, C5.LcCast5.encrypt(k, b)), b, LL.cast5_round_trip(k, b)) : {Con{b, t} == Con{_, Md.cr.ecb(~C5.LcCast5Key, ~L.LcBlock64, ~C5.LcCast5.decrypt, k, Md.cr.ecb(~C5.LcCast5Key, ~L.LcBlock64, ~C5.LcCast5.encrypt, k, t))} : List<&2, L.LcBlock64>}
1395 %ecb_rt.cast5(k, t) : {Con{b, t} == Con{b, _} : List<&2, L.LcBlock64>}
1396 {==}