scyther/testing/protocols/misc/isoiec11770-2-13.spdl

48 lines
684 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00:00
usertype Sessionkey;
usertype Ticket;
secret k: Function;
protocol isoiec11770213(I,R,S)
{
role I
{
fresh ni: Nonce;
2006-11-21 13:40:50 +00:00
var nr: Nonce;
var kir: Sessionkey;
send_1 (I,R, ni);
2012-05-02 22:26:41 +01:00
recv_4 (R,I, { ni,kir,R }k(I,S) );
2006-11-21 13:40:50 +00:00
claim_5 (I, Secret, kir);
}
role R
{
var ni: Nonce;
fresh nr: Nonce;
fresh kir: Sessionkey;
2006-11-21 13:40:50 +00:00
var T;
2012-05-02 22:26:41 +01:00
recv_1 (I,R, ni);
2006-11-21 13:40:50 +00:00
send_2 (R,S, { nr,ni,I,kir }k(R,S) );
2012-05-02 22:26:41 +01:00
recv_3 (S,R, { nr, I }k(R,S), T );
2006-11-21 13:40:50 +00:00
send_4 (R,I, T );
claim_6 (R, Secret, kir);
}
role S
{
var ni,nr: Nonce;
var kir: Sessionkey;
2012-05-02 22:26:41 +01:00
recv_2 (R,S, { nr,ni,I,kir }k(R,S) );
2006-11-21 13:40:50 +00:00
send_3 (S,R, { nr, I }k(R,S), { ni,kir,R }k(I,S) );
}
}
const te: Ticket;
const ke: Sessionkey;