def cam_unop_op
bend-osdev-legacy-ciphers@0.1.0.0 · PROOF.bend:348
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/camellia.bend as C
348def cam_unop_op(o: C.LcCamOp, +s: M.CmBlock) -> {s == C.cam.unop(o, C.cam.op(o, s)) : M.CmBlock}:
349 match o:
350 case C.LcCamWhite{a, b}:
351 cam_white(a, b, s)
352 case C.LcCamF1{t, k}:
353 cam_f1(t, k, s)
354 case C.LcCamF2{t, k}:
355 cam_f2(t, k, s)
356 case C.LcCamFl{a, b}:
357 cam_fl_step(a, b, s)
358 case C.LcCamSwap{}:
359 match s:
360 case M.CmBlock{s0, s1, s2, s3}:
361 {==}