scyther/testing/andrew-lowe-ban.spdl

42 lines
656 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00:00
usertype SessionKey;
secret k: Function;
protocol andrewLoweBan(I,R)
{
role I
{
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_2(R,I, {ni,kir,I}k(I,R) );
2006-11-21 13:40:50 +00:00
send_3(I,R, {ni}kir );
2012-05-02 22:26:41 +01:00
recv_4(R,I, nr );
2006-11-21 13:40:50 +00:00
claim_5(I,Nisynch);
claim_5b(I,Niagree);
claim_6(I,Secret, kir);
claim_7(I,Secret, k(I,R));
}
role R
{
var ni: Nonce;
fresh nr: Nonce;
fresh kir: SessionKey;
2006-11-21 13:40:50 +00:00
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,I, {ni,kir,I}k(I,R) );
2012-05-02 22:26:41 +01:00
recv_3(I,R, {ni}kir );
2006-11-21 13:40:50 +00:00
send_4(R,I, nr );
claim_8(R,Nisynch);
claim_8b(R,Niagree);
claim_9(R,Secret, kir);
claim_10(R,Secret, k(I,R));
}
}
const kee: SessionKey;