scyther/testing/protocols/misc/kaochow-palm.spdl

52 lines
813 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00:00
usertype Sessionkey;
usertype Ticket;
secret k: Function;
protocol kaochowPalm(I,R,S)
{
role I
{
fresh ni: Nonce;
2006-11-21 13:40:50 +00:00
var nr: Nonce;
var kir: Sessionkey;
send_1 (I,S, I,R,ni);
2012-05-02 22:26:41 +01:00
recv_3 (R,I, {I,R,ni,kir}k(I,S), {ni}kir, nr );
2006-11-21 13:40:50 +00:00
send_4 (I,R, {nr}kir );
claim_5 (I, Nisynch);
claim_6 (I, Niagree);
claim_7 (I, Secret, kir);
}
role R
{
var ni: Nonce;
fresh nr: Nonce;
2006-11-21 13:40:50 +00:00
var kir: Sessionkey;
var T;
2012-05-02 22:26:41 +01:00
recv_2 (S,R, { T, { I,R,ni,kir }k(R,S) }k(R,S) );
2006-11-21 13:40:50 +00:00
send_3 (R,I, T, {ni}kir, nr );
2012-05-02 22:26:41 +01:00
recv_4 (I,R, {nr}kir );
2006-11-21 13:40:50 +00:00
claim_8 (R, Nisynch);
claim_9 (R, Niagree);
claim_10 (R, Secret, kir);
}
role S
{
var ni: Nonce;
fresh kir: Sessionkey;
2006-11-21 13:40:50 +00:00
2012-05-02 22:26:41 +01:00
recv_1 (I,S, I,R,ni);
2006-11-21 13:40:50 +00:00
send_2 (S,R, { {I,R,ni,kir}k(I,S), { I,R,ni,kir }k(R,S) }k(R,S) );
}
}
const te: Ticket;
const ke: Sessionkey;