def tf_op_unop

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

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/twofish.bend as F

456def tf_op_unop(o: F.LcTfOp, +s: M.CmBlock) -> {s == F.tf.op(o, F.tf.unop(o, s)) : M.CmBlock}:
457  match o:
458    case F.LcTfBswap{}:
459      tf_bswapd(s)
460    case F.LcTfWhite{k}:
461      block_xx(s, k)
462    case F.LcTfRound{tb, sk, ka, kb}:
463      tf_roundd(tb, sk, ka, kb, s)
464    case F.LcTfSwap{}:
465      match s:
466        case M.CmBlock{a, b, c, d}:
467          {==}

Uses (7)

Used by (1)