From f5548b82cc5d381d9ad0c9598e475adb83f80f4d Mon Sep 17 00:00:00 2001 From: ccremers Date: Mon, 30 Aug 2004 14:30:17 +0000 Subject: [PATCH] - Added protocol. --- spdl/ccitt509-ban.spdl | 49 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 spdl/ccitt509-ban.spdl diff --git a/spdl/ccitt509-ban.spdl b/spdl/ccitt509-ban.spdl new file mode 100644 index 0000000..1e51f92 --- /dev/null +++ b/spdl/ccitt509-ban.spdl @@ -0,0 +1,49 @@ +usertype Data; +const pk: Function; +secret sk: Function; +inversekeys (pk,sk); + +protocol ccitt509(I,R) +{ + role I + { + const xi,yi: Data; + const ni: Nonce; + var nr: Nonce; + var yr,xr: Data; + + send_1(I,R, I,{ni, R, xi, {yi}pk(R) }sk(I) ); + read_2(R,I, R,{nr, I, ni, xr, {yr}pk(I) }sk(R) ); + send_3(I,R, I,{R,nr}sk(I) ); + + claim_4(I,Secret,yi,yr); + claim_5(I,Nisynch); + } + + role R + { + var xi,yi: Data; + var ni: Nonce; + const nr: Nonce; + const yr,xr: Data; + + read_1(I,R, I,{ni, R, xi, {yi}pk(R) }sk(I) ); + send_2(R,I, R,{nr, I, ni, xr, {yr}pk(I) }sk(R) ); + read_3(I,R, I,{R,nr}sk(I) ); + + claim_7(R,Secret,yi,yr); + claim_8(R,Nisynch); + } +} + +const Alice,Bob,Eve: Agent; + +untrusted Eve; +const ne: Nonce; +const de: Data; +compromised sk(Eve); + +run ccitt509.I(Agent,Agent); +run ccitt509.R(Agent,Agent); +run ccitt509.I(Agent,Agent); +run ccitt509.R(Agent,Agent);