2006-11-21 13:42:06 +00:00
|
|
|
# Lowe modified Denning-Sacco shared key
|
|
|
|
#
|
|
|
|
# Modelled after the description in the SPORE library
|
|
|
|
# http://www.lsv.ens-cachan.fr/spore/denningSaccoLowe.html
|
|
|
|
#
|
|
|
|
# Note:
|
|
|
|
# According to SPORE there are no attacks on this protocol, scyther
|
|
|
|
# finds one however. This has to be investigated further.
|
|
|
|
|
|
|
|
usertype Key;
|
|
|
|
usertype SessionKey;
|
|
|
|
usertype TimeStamp;
|
|
|
|
usertype ExpiredTimeStamp;
|
|
|
|
usertype PseudoFunction;
|
|
|
|
const dec: PseudoFunction;
|
|
|
|
const Fresh: Function;
|
|
|
|
const Compromised: Function;
|
|
|
|
|
|
|
|
protocol denningSacco-Lowe(I,R,S)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
|
|
|
var W: Ticket;
|
|
|
|
var Kir: SessionKey;
|
|
|
|
var T: TimeStamp;
|
|
|
|
var Nr: Nonce;
|
|
|
|
|
|
|
|
send_1(I,S, I,R );
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_2(S,I, {R, Kir, T, W}k(I,S) );
|
2006-11-21 13:42:06 +00:00
|
|
|
send_3(I,R, W);
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_4(R,I, {Nr}Kir);
|
2006-11-21 13:42:06 +00:00
|
|
|
send_5(I,R, {{Nr}dec}Kir);
|
|
|
|
claim_I1(I,Niagree);
|
|
|
|
claim_I2(I,Nisynch);
|
2012-04-26 15:40:01 +01:00
|
|
|
claim_I3(I,SKR,Kir);
|
2006-11-21 13:42:06 +00:00
|
|
|
claim_I4(I,Empty,(Fresh,Kir));
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var Kir: SessionKey;
|
|
|
|
var T: TimeStamp;
|
2012-04-23 14:53:28 +01:00
|
|
|
fresh Nr: Nonce;
|
2006-11-21 13:42:06 +00:00
|
|
|
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_3(I,R, {Kir,I,T}k(R,S));
|
2006-11-21 13:42:06 +00:00
|
|
|
send_4(R,I, {Nr}Kir);
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_5(I,R, {{Nr}dec}Kir);
|
2006-11-21 13:42:06 +00:00
|
|
|
claim_R1(R,Niagree);
|
|
|
|
claim_R2(R,Nisynch);
|
|
|
|
claim_R3(R,Secret,Kir);
|
|
|
|
claim_R4(R,Empty,(Fresh,Kir));
|
|
|
|
}
|
|
|
|
|
|
|
|
role S
|
|
|
|
{
|
|
|
|
var W: Ticket;
|
2012-04-23 14:53:28 +01:00
|
|
|
fresh Kir: SessionKey;
|
|
|
|
fresh T: TimeStamp;
|
2006-11-21 13:42:06 +00:00
|
|
|
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_1(I,S, I,R );
|
2006-11-21 13:42:06 +00:00
|
|
|
send_2(S,I, {R, Kir, T, {Kir, I,T}k(R,S)}k(I,S));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|