scyther/gui/Protocols/ksl-lowe.spdl

74 lines
1.7 KiB
Plaintext
Raw Normal View History

2006-11-21 13:42:06 +00:00
# Lowe modified KSL
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/kslLowe.html
#
# Note:
# According to SPORE there are no attacks on this protocol, scyther
# finds one however. This has to be investigated further.
usertype Server, SessionKey, TimeStamp, TicketKey;
usertype ExpiredTimeStamp;
const Fresh: Function;
const Compromised: Function;
protocol ksl-Lowe(I,R,S)
{
role I
{
fresh Ni, Mi: Nonce;
2006-11-21 13:42:06 +00:00
var Nc, Mr: Nonce;
var T: Ticket;
var Kir: SessionKey;
send_1(I,R, Ni, I);
2012-04-26 15:40:01 +01:00
recv_4(R,I, { Ni,R,Kir }k(I,S), T, Nc, {R,Ni}Kir );
2006-11-21 13:42:06 +00:00
send_5(I,R, { Nc }Kir );
send_6(I,R, Mi,T );
2012-04-26 15:40:01 +01:00
recv_7(R,I, Mr,{Mi, R}Kir );
2006-11-21 13:42:06 +00:00
send_8(I,R, {I,Mr}Kir );
claim_I1(I,Secret, Kir);
claim_I2(I,Niagree);
claim_I3(I,Nisynch);
claim_I4(I,Empty, (Fresh,Kir));
}
role R
{
var Ni,Mi: Nonce;
fresh Nr,Nc,Mr: Nonce;
2006-11-21 13:42:06 +00:00
var Kir: SessionKey;
fresh Kbb: TicketKey;
fresh Tr: TimeStamp;
2006-11-21 13:42:06 +00:00
var T: Ticket;
2012-04-26 15:40:01 +01:00
recv_1(I,R, Ni, I);
2006-11-21 13:42:06 +00:00
send_2(R,S, Ni, I, Nr, R );
2012-04-26 15:40:01 +01:00
recv_3(S,R, { I, Nr, Kir }k(R,S), T );
2006-11-21 13:42:06 +00:00
send_4(R,I, T, { Tr, I, Kir }Kbb, Nc, {R, Ni}Kir );
2012-04-26 15:40:01 +01:00
recv_5(I,R, { Nc }Kir );
2006-11-21 13:42:06 +00:00
2012-04-26 15:40:01 +01:00
recv_6(I,R, Mi,{ Tr, I, Kir }Kbb );
2006-11-21 13:42:06 +00:00
send_7(R,I, Mr,{Mi,R}Kir );
2012-04-26 15:40:01 +01:00
recv_8(I,R, {I,Mr}Kir );
2006-11-21 13:42:06 +00:00
claim_R1(R,Secret, Kir);
claim_R2(R,Niagree);
claim_R3(R,Nisynch);
claim_R4(R,Empty, (Fresh,Kir));
}
role S
{
var Ni, Nr: Nonce;
fresh Kir: SessionKey;
2006-11-21 13:42:06 +00:00
2012-04-26 15:40:01 +01:00
recv_2(R,S, Ni, I, Nr, R );
2006-11-21 13:42:06 +00:00
send_3(S,R, { I, Nr, Kir }k(R,S), { Ni,R,Kir }k(I,S) );
}
}