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