From 99088a7723c103ae90f857884a2d17dcc8cac35f Mon Sep 17 00:00:00 2001 From: ccremers Date: Sun, 17 Apr 2005 10:30:54 +0000 Subject: [PATCH] - Added n runs protocol example. --- spdl/f4.spdl | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 spdl/f4.spdl diff --git a/spdl/f4.spdl b/spdl/f4.spdl new file mode 100644 index 0000000..b34a06f --- /dev/null +++ b/spdl/f4.spdl @@ -0,0 +1,48 @@ +/* + * f4.spdl + * + * Tailored protocol to show that any number of runs can be required to + * find an attack. + * + * For this version, -m2 and -r4 are needed. + * + * April 2005, Cas Cremers + */ + +const pk: Function; +secret sk: Function; +inversekeys (pk,sk); + +protocol f4(I,R) +{ + role I + { + var nr: Nonce; + + read_1(R,I, nr ); + send_2(I,R, { nr }sk(I) ); + read_3(R,I, {{{{ nr }sk(R)}sk(R)}sk(R)}sk(R) ); + + claim_i1(I,Niagree); + } + + role R + { + const nr: Nonce; + send_1(R,I, nr ); + } + +} + +const Alice,Bob,Eve: Agent; + +untrusted Eve; +const ne: Nonce; +compromised sk(Eve); + +run f4.I(Agent,Agent); +run f4.I(Agent,Agent); +run f4.I(Agent,Agent); +run f4.I(Agent,Agent); +run f4.I(Agent,Agent); +run f4.I(Agent,Agent);