2010-11-09 09:05:34 +00:00
|
|
|
# Lowe modified Wide Mouthed Frog
|
|
|
|
#
|
|
|
|
# Modelled after the description in the SPORE library
|
|
|
|
# http://www.lsv.ens-cachan.fr/spore/wideMouthedFrogLowe.html
|
|
|
|
#
|
|
|
|
# Note:
|
|
|
|
# According to SPORE there are no known attacks on this protocol, scyther
|
|
|
|
# finds one however this has to do with the unusual assumption that every
|
2012-04-26 15:40:01 +01:00
|
|
|
# agent can recognise and will reject to recv messages that it has created
|
2010-11-09 09:05:34 +00:00
|
|
|
# itself.
|
|
|
|
|
|
|
|
usertype SessionKey;
|
|
|
|
usertype TimeStamp;
|
|
|
|
usertype ExpiredTimeStamp;
|
|
|
|
const succ,pred: Function;
|
|
|
|
inversekeys (succ,pred);
|
|
|
|
const Fresh: Function;
|
|
|
|
const Compromised: Function;
|
|
|
|
|
|
|
|
protocol wmf-Lowe(I,R,S)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
|
|
|
fresh Kir: SessionKey;
|
|
|
|
fresh Ti: TimeStamp;
|
|
|
|
var Kr: SessionKey;
|
|
|
|
var Nr: Nonce;
|
|
|
|
|
|
|
|
send_1(I,S, I, {Ti, R, Kir}k(I,S));
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_3(R,I,{Nr}Kir);
|
2010-11-09 09:05:34 +00:00
|
|
|
send_4(I,R,{{Nr}succ}Kir);
|
|
|
|
|
|
|
|
claim_I1(I,Secret,Kir);
|
|
|
|
claim_I2(I,Nisynch);
|
|
|
|
claim_I3(I,Empty,(Fresh,Kir));
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var Ts: TimeStamp;
|
|
|
|
var Kir: SessionKey;
|
|
|
|
fresh Nr: Nonce;
|
|
|
|
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_2(S,R, {Ts, I, Kir}k(R,S) );
|
2010-11-09 09:05:34 +00:00
|
|
|
send_3(R,I, {Nr}Kir);
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_4(I,R, {{Nr}succ}Kir);
|
2010-11-09 09:05:34 +00:00
|
|
|
|
|
|
|
claim_R1(R,Secret,Kir);
|
|
|
|
claim_R2(R,Nisynch);
|
|
|
|
claim_R3(R,Empty,(Fresh,Kir));
|
|
|
|
}
|
|
|
|
|
|
|
|
role S
|
|
|
|
{
|
|
|
|
var Kir: SessionKey;
|
|
|
|
fresh Ts: TimeStamp;
|
|
|
|
var Ti: TimeStamp;
|
|
|
|
|
2012-04-26 15:40:01 +01:00
|
|
|
recv_1(I,S, I,{Ti, R, Kir}k(I,S) );
|
2010-11-09 09:05:34 +00:00
|
|
|
send_2(S,R, {Ts, I, Kir}k(R,S));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|