scyther/protocols/misc/yahalom-paulson.spdl

57 lines
841 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00:00
/*
* Yahalom Paulson-strengthened
* As in Sjouke's list
*/
usertype Sessionkey, Ticket;
secret k : Function;
const kee: Sessionkey;
protocol yahalompaulson(I,R,S)
{
role I
{
fresh ni: Nonce;
2006-11-21 13:40:50 +00:00
var nr: Nonce;
var kir: Sessionkey;
var T: Ticket;
send_1(I,R, I,ni);
2012-05-02 22:26:41 +01:00
recv_3(S,I, nr, {R,kir,ni}k(I,S), T );
2006-11-21 13:40:50 +00:00
send_4(I,R, T, {nr}kir );
claim_8(I, Secret,kir);
claim_9(I, Nisynch);
claim_10(I, Niagree);
}
role R
{
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, R,nr,{I,ni}k(R,S) );
2012-05-02 22:26:41 +01:00
recv_4(I,R, {I,R,kir,nr}k(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
{
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, R,nr, {I,ni}k(R,S) );
2006-11-21 13:40:50 +00:00
send_3(S,I, nr, { R,kir,ni }k(I,S), {I,R,kir,nr}k(R,S) );
}
}