scyther/testing/yahalom-lowe.spdl

57 lines
815 B
Plaintext

/*
* Yahalom Lowe
* As in Sjouke's list
*/
usertype Sessionkey;
secret k : Function;
const kee: Sessionkey;
protocol yahalomlowe(I,R,S)
{
role I
{
fresh ni: Nonce;
var nr: Nonce;
var kir: Sessionkey;
send_1(I,R, I,ni);
recv_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);
}
role R
{
fresh nr: Nonce;
var ni: Nonce;
var kir: Sessionkey;
recv_1(I,R, I,ni);
send_2(R,S, {I,ni,nr}k(R,S) );
recv_4(S,R, {I,kir}k(R,S) );
recv_5(I,R, {I,R,S,nr}kir );
claim_11(R, Secret,kir);
claim_12(R, Nisynch);
claim_13(R, Niagree);
}
role S
{
fresh kir: Sessionkey;
var ni,nr: Nonce;
recv_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) );
}
}