def ccmp.diff_self

bend-osdev-cipher-modes@0.1.0.0 · PROOF.bend:1753

import bend-osdev-cipher-modes@0.1.0.0/PROOF.bend as PROOF
import Base
import bend-osdev-bytes@0.1.0.0/bytes.bend as B
import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as M

1753def ccmp.diff_self(xs: List<&2, U32>) -> {M.cm.diff(xs, xs, 0) == 0 : U32}:
1754  match xs:
1755    case Nil{}:
1756      {==}
1757    case Con{+a, +s}:
1758      %Equal.sym(U32, B.byte(U32.xor(a, a)), 0, bits.xor_self(a)) : {M.cm.diff(s, s, U32.or(0, _)) == 0 : U32}
1759      ccmp.diff_self(s)

Uses (8)

Used by (1)