From 6eecef98068ebaee808508ce55b14409bd4088a5 Mon Sep 17 00:00:00 2001 From: ccremers Date: Wed, 13 Oct 2004 13:29:38 +0000 Subject: [PATCH] - I can't remember why I needed this protocol, but here goes. --- spdl/nsl3-2m.spdl | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 spdl/nsl3-2m.spdl diff --git a/spdl/nsl3-2m.spdl b/spdl/nsl3-2m.spdl new file mode 100644 index 0000000..471db45 --- /dev/null +++ b/spdl/nsl3-2m.spdl @@ -0,0 +1,35 @@ +const pk: Function; +secret sk: Function; +inversekeys (pk,sk); + +protocol nsl3x2m(I,R) +{ + role I + { + const ni: Nonce; + var nr: Nonce; + + send_1(I,R, {I,ni}pk(R) ); + read_2(R,I, {ni,nr,R}pk(I) ); + claim_4(I,Secret,ni,nr); + } + + role R + { + var ni: Nonce; + const nr: Nonce; + + read_1(I,R, {I,ni}pk(R) ); + send_2(R,I, {ni,nr,R}pk(I) ); + claim_5(R,Secret,ni,nr); + } +} + +const Alice,Bob,Eve: Agent; + +untrusted Eve; +const nc: Nonce; +compromised sk(Eve); + +run nsl3x2m.I(Agent,Agent); +run nsl3x2m.R(Alice,Bob);