def sp_lt6

bend-osdev-legacy-ciphers@0.1.0.0 · PROOF.bend:1222

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/serpent.bend as P

1222def sp_lt6(s: M.CmBlock) -> {s == P.sp.lt6(P.sp.lt6(s)) : M.CmBlock}:
1223  match s:
1224    case M.CmBlock{+x0, +x1, +x2, +x3}:
1225      %u32_xx(x0, U32.xor(x1, x3)) : {M.CmBlock{x0, x1, x2, x3} == M.CmBlock{_, x1, x2, x3} : M.CmBlock}
1226      {==}

Uses (4)

Used by (2)