2006-11-21 13:40:50 +00:00
|
|
|
usertype Sessionkey;
|
|
|
|
usertype Ticket;
|
|
|
|
secret k: Function;
|
|
|
|
|
|
|
|
protocol kaochow2(I,R,S)
|
|
|
|
{
|
|
|
|
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,kt: Sessionkey;
|
|
|
|
|
|
|
|
send_1 (I,S, I,R,ni);
|
|
|
|
read_3 (R,I, R, {I,R,ni,kir,kt}k(I,S), {ni, kir}kt, nr );
|
|
|
|
send_4 (I,R, {nr,kir}kt );
|
|
|
|
|
|
|
|
claim_5 (I, Nisynch);
|
|
|
|
claim_6 (I, Niagree);
|
|
|
|
claim_7 (I, Secret, kir);
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var ni: Nonce;
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh nr: Nonce;
|
2006-11-21 13:40:50 +00:00
|
|
|
var kir,kt: Sessionkey;
|
|
|
|
var T: Ticket;
|
|
|
|
|
|
|
|
read_2 (S,R, T, { I,R,ni,kir,kt }k(R,S) );
|
|
|
|
send_3 (R,I, R, T, {ni, kir}kt, nr );
|
|
|
|
read_4 (I,R, {nr,kir}kt );
|
|
|
|
|
|
|
|
claim_8 (R, Nisynch);
|
|
|
|
claim_9 (R, Niagree);
|
|
|
|
claim_10 (R, Secret, kir);
|
|
|
|
}
|
|
|
|
|
|
|
|
role S
|
|
|
|
{
|
|
|
|
var ni: Nonce;
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh kir, kt: Sessionkey;
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
read_1 (I,S, I,R,ni);
|
|
|
|
send_2 (S,R, {I,R,ni,kir,kt}k(I,S), { I,R,ni,kir,kt }k(R,S) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const te: Ticket;
|
|
|
|
const ke: Sessionkey;
|
|
|
|
|