2006-11-21 13:40:50 +00:00
|
|
|
/*
|
|
|
|
* Yahalom Lowe
|
|
|
|
* As in Sjouke's list
|
|
|
|
*/
|
|
|
|
|
|
|
|
usertype Sessionkey;
|
|
|
|
|
|
|
|
secret k : Function;
|
|
|
|
|
|
|
|
const kee: Sessionkey;
|
|
|
|
|
|
|
|
protocol yahalomlowe(I,R,S)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh ni: Nonce;
|
2006-11-21 13:40:50 +00:00
|
|
|
var nr: Nonce;
|
|
|
|
var kir: Sessionkey;
|
|
|
|
|
|
|
|
send_1(I,R, I,ni);
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_3(S,I, {R,kir,ni,nr}k(I,S) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_5(I,R, {I,R,S,nr}kir );
|
|
|
|
|
|
|
|
claim_8(I, Secret,kir);
|
|
|
|
claim_9(I, Niagree);
|
|
|
|
claim_10(I, Nisynch);
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh nr: Nonce;
|
2006-11-21 13:40:50 +00:00
|
|
|
var ni: Nonce;
|
|
|
|
var kir: Sessionkey;
|
|
|
|
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_1(I,R, I,ni);
|
2006-11-21 13:40:50 +00:00
|
|
|
send_2(R,S, {I,ni,nr}k(R,S) );
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_4(S,R, {I,kir}k(R,S) );
|
|
|
|
recv_5(I,R, {I,R,S,nr}kir );
|
2006-11-21 13:40:50 +00:00
|
|
|
claim_11(R, Secret,kir);
|
|
|
|
claim_12(R, Nisynch);
|
|
|
|
claim_13(R, Niagree);
|
|
|
|
}
|
|
|
|
|
|
|
|
role S
|
|
|
|
{
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh kir: Sessionkey;
|
2006-11-21 13:40:50 +00:00
|
|
|
var ni,nr: Nonce;
|
|
|
|
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_2(R,S, {I,ni,nr}k(R,S) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_3(S,I, {R,kir,ni,nr}k(I,S) );
|
|
|
|
send_4(S,R, {I,kir}k(R,S) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|