2006-11-21 13:40:50 +00:00
|
|
|
usertype SessionKey;
|
|
|
|
secret k: Function;
|
|
|
|
|
|
|
|
protocol andrewLoweBan(I,R)
|
|
|
|
{
|
|
|
|
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 );
|
|
|
|
read_2(R,I, {ni,kir,I}k(I,R) );
|
|
|
|
send_3(I,R, {ni}kir );
|
|
|
|
read_4(R,I, nr );
|
|
|
|
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;
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh nr: Nonce;
|
|
|
|
fresh kir: SessionKey;
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
read_1(I,R, I,ni );
|
|
|
|
send_2(R,I, {ni,kir,I}k(I,R) );
|
|
|
|
read_3(I,R, {ni}kir );
|
|
|
|
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;
|
|
|
|
|