scyther/spdl/misc/yahalom-lowe.spdl

66 lines
1.1 KiB
Plaintext
Raw Normal View History

2005-01-14 09:52:48 +00:00
/*
* Yahalom Lowe
* As in Sjouke's list
*/
2004-02-20 11:37:28 +00:00
usertype Sessionkey;
const Alice,Bob,Simon,Eve : Agent;
2004-02-20 11:37:28 +00:00
secret k : Function;
untrusted Eve;
compromised k(Eve,Simon);
const ne: Nonce;
const kee: Sessionkey;
2004-02-20 11:37:28 +00:00
protocol yahalomlowe(I,R,S)
2004-02-20 11:37:28 +00:00
{
role I
2004-02-20 11:37:28 +00:00
{
const ni: Nonce;
var nr: Nonce;
var kir: Sessionkey;
send_1(I,R, I,ni);
read_3(S,I, {R,kir,ni,nr}k(I,S) );
send_5(I,R, {I,R,S,nr}kir );
claim_8(I, Secret,kir);
claim_9(I, Niagree);
claim_10(I, Nisynch);
2004-02-20 11:37:28 +00:00
}
role R
2004-02-20 11:37:28 +00:00
{
const nr: Nonce;
var ni: Nonce;
var kir: Sessionkey;
read_1(I,R, I,ni);
send_2(R,S, {I,ni,nr}k(R,S) );
read_4(S,R, {I,kir}k(R,S) );
read_5(I,R, {I,R,S,nr}kir );
claim_11(R, Secret,kir);
claim_12(R, Nisynch);
claim_13(R, Niagree);
2004-02-20 11:37:28 +00:00
}
role S
{
const kir: Sessionkey;
var ni,nr: Nonce;
2004-02-20 11:37:28 +00:00
read_2(R,S, {I,ni,nr}k(R,S) );
send_3(S,I, {R,kir,ni,nr}k(I,S) );
send_4(S,R, {I,kir}k(R,S) );
2004-02-20 11:37:28 +00:00
}
}
run yahalomlowe.I(Agent,Agent,Simon);
run yahalomlowe.R(Agent,Agent,Simon);
run yahalomlowe.S(Agent,Agent,Simon);
2004-02-20 11:37:28 +00:00
run yahalomlowe.I(Agent,Agent,Simon);
run yahalomlowe.R(Agent,Agent,Simon);
2004-02-20 11:37:28 +00:00