def sp_lt5
bend-osdev-legacy-ciphers@0.1.0.0 · PROOF.bend:1208
import bend-osdev-legacy-ciphers@0.1.0.0/PROOF.bend as PROOF
import Base
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
import bend-osdev-legacy-ciphers@0.1.0.0/serpent.bend as P
1208def sp_lt5(s: M.CmBlock) -> {s == P.sp.ilt5(P.sp.lt5(s)) : M.CmBlock}:
1209 match s:
1210 case M.CmBlock{+x0, +x1, +x2, +x3}:
1211 %rot_31_1(x1) : {M.CmBlock{x0, x1, x2, x3} == M.CmBlock{x0, _, x2, L.lc.rotl25.bits(L.lc.rotl7.bits(x3))} : M.CmBlock}
1212 %rot_25_7(x3) : {M.CmBlock{x0, x1, x2, x3} == M.CmBlock{x0, x1, x2, _} : M.CmBlock}
1213 {==}