2004-08-30 15:17:11 +01:00
|
|
|
usertype SessionKey;
|
|
|
|
secret k: Function;
|
|
|
|
|
|
|
|
protocol andrewBan(I,R)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
|
|
|
const ni: Nonce;
|
2004-10-13 13:25:01 +01:00
|
|
|
var nr,nr2: Nonce;
|
2004-08-30 15:17:11 +01:00
|
|
|
var kir: SessionKey;
|
|
|
|
|
2004-10-13 13:25:01 +01:00
|
|
|
send_1(I,R, I,{ni}k(I,R) );
|
|
|
|
read_2(R,I, {ni,nr}k(I,R) );
|
|
|
|
send_3(I,R, {nr}k(I,R) );
|
|
|
|
read_4(R,I, {kir,nr2,ni}k(I,R) );
|
2004-08-30 15:17:11 +01:00
|
|
|
claim_5(I,Nisynch);
|
2005-03-02 19:57:05 +00:00
|
|
|
claim_5b(I,Niagree);
|
2004-08-30 15:17:11 +01:00
|
|
|
claim_6(I,Secret, kir);
|
|
|
|
claim_7(I,Secret, k(I,R));
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var ni: Nonce;
|
2004-10-13 13:25:01 +01:00
|
|
|
const nr,nr2: Nonce;
|
2004-08-30 15:17:11 +01:00
|
|
|
const kir: SessionKey;
|
|
|
|
|
2004-10-13 13:25:01 +01:00
|
|
|
read_1(I,R, I,{ni}k(I,R) );
|
|
|
|
send_2(R,I, {ni,nr}k(I,R) );
|
|
|
|
read_3(I,R, {nr}k(I,R) );
|
|
|
|
send_4(R,I, {kir,nr2,ni}k(I,R) );
|
2004-08-30 15:17:11 +01:00
|
|
|
claim_8(R,Nisynch);
|
2005-03-02 19:57:05 +00:00
|
|
|
claim_8b(R,Niagree);
|
2004-08-30 15:17:11 +01:00
|
|
|
claim_9(R,Secret, kir);
|
|
|
|
claim_10(R,Secret, k(I,R));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const Alice,Bob,Eve: Agent;
|
|
|
|
|
|
|
|
untrusted Eve;
|
|
|
|
const ne: Nonce;
|
|
|
|
const kee: SessionKey;
|
2004-08-30 15:39:52 +01:00
|
|
|
compromised k(Eve,Eve);
|
|
|
|
compromised k(Eve,Alice);
|
|
|
|
compromised k(Eve,Bob);
|
|
|
|
compromised k(Alice,Eve);
|
|
|
|
compromised k(Bob,Eve);
|
2004-08-30 15:17:11 +01:00
|
|
|
|
|
|
|
run andrewBan.I(Agent,Agent);
|
|
|
|
run andrewBan.R(Agent,Agent);
|
|
|
|
run andrewBan.I(Agent,Agent);
|
|
|
|
run andrewBan.R(Agent,Agent);
|