scyther/testing/protocols/misc/unknown2.spdl

56 lines
850 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00:00
usertype SessionKey;
secret k: Function;
protocol unknown2(I,R,S)
{
role I
{
fresh ni: Nonce;
2006-11-21 13:40:50 +00:00
var nr: Nonce;
var kir: SessionKey;
var T;
send_1(I,R, ni );
2012-05-02 22:26:41 +01:00
recv_3(S,I, { I,R,kir,ni,nr }k(I,S), T );
2006-11-21 13:40:50 +00:00
send_4(I,R, T, {nr}kir );
claim_i1(I,Nisynch);
claim_i2(I,Niagree);
claim_i3(I,Secret, kir);
}
role R
{
fresh nr: Nonce;
2006-11-21 13:40:50 +00:00
var ni: Nonce;
var kir: SessionKey;
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, { I,R,ni,nr }k(R,S) );
2012-05-02 22:26:41 +01:00
recv_4(I,R, { I,R,kir,ni,nr }k(R,S), {nr}kir );
2006-11-21 13:40:50 +00:00
claim_r1(R,Nisynch);
claim_r2(R,Niagree);
claim_r3(R,Secret, kir);
}
role S
{
fresh kir: SessionKey;
2006-11-21 13:40:50 +00:00
var ni,nr: Nonce;
2012-05-02 22:26:41 +01:00
recv_2(R,S, { I,R,ni,nr }k(R,S) );
2006-11-21 13:40:50 +00:00
send_3(S,I, { I,R,kir,ni,nr }k(I,S), { I,R,kir,ni,nr }k(R,S) );
/*
claim_s1(S,Nisynch);
claim_s2(S,Niagree);
claim_s3(S,Secret, kir);
*/
}
}
const kee: SessionKey;