def sp_lt7

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

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

1228def sp_lt7(s: M.CmBlock) -> {s == P.sp.lt7(P.sp.lt7(s)) : M.CmBlock}:
1229  match s:
1230    case M.CmBlock{+x0, +x1, +x2, +x3}:
1231      %u32_xx(x2, U32.xor(x3, U32.shln(x1, 7n))) : {M.CmBlock{x0, x1, x2, x3} == M.CmBlock{x0, x1, _, x3} : M.CmBlock}
1232      {==}

Uses (5)

Used by (2)