2005-05-02 10:24:26 +01: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:
|
|
|
|
# This protocol uses a ticket so scyther will only be able to verify
|
2005-06-02 13:41:24 +01:00
|
|
|
# the protocol using the ARACHNE engine (-a)
|
2005-05-02 10:24:26 +01:00
|
|
|
#
|
|
|
|
# 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;
|
|
|
|
secret k: Function;
|
|
|
|
usertype PseudoFunction;
|
|
|
|
const dec: PseudoFunction;
|
2005-06-23 13:45:32 +01:00
|
|
|
const Fresh: Function;
|
2005-05-02 10:24:26 +01:00
|
|
|
|
2005-05-10 15:08:51 +01:00
|
|
|
protocol denningSaccoLowe(I,R,S)
|
2005-05-02 10:24:26 +01:00
|
|
|
{
|
2005-05-23 13:35:58 +01:00
|
|
|
role I
|
|
|
|
{
|
2005-05-02 10:24:26 +01:00
|
|
|
var W: Ticket;
|
2005-05-23 13:35:58 +01:00
|
|
|
var Kir: SessionKey;
|
2005-05-02 10:24:26 +01:00
|
|
|
var T: TimeStamp;
|
|
|
|
var Nr: Nonce;
|
|
|
|
|
2005-05-23 13:35:58 +01:00
|
|
|
send_1(I,S, I,R );
|
|
|
|
read_2(S,I, {R, Kir, T, W}k(I,S) );
|
|
|
|
send_3(I,R, W);
|
2005-05-02 10:24:26 +01:00
|
|
|
read_4(R,I, {Nr}Kir);
|
|
|
|
send_5(I,R, {{Nr}dec}Kir);
|
2005-06-23 13:45:32 +01:00
|
|
|
claim_I1(I,Niagree);
|
|
|
|
claim_I2(I,Nisynch);
|
|
|
|
claim_I3(I,Secret,Kir);
|
|
|
|
claim_I4(I,Empty,(Fresh,Kir));
|
2005-05-23 13:35:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
2005-05-02 10:24:26 +01:00
|
|
|
var Kir: SessionKey;
|
|
|
|
var T: TimeStamp;
|
|
|
|
const Nr: Nonce;
|
|
|
|
|
2005-05-23 13:35:58 +01:00
|
|
|
read_3(I,R, {Kir,I,T}k(R,S));
|
2005-05-02 10:24:26 +01:00
|
|
|
send_4(R,I, {Nr}Kir);
|
|
|
|
read_5(I,R, {{Nr}dec}Kir);
|
2005-06-23 13:45:32 +01:00
|
|
|
claim_R1(R,Niagree);
|
|
|
|
claim_R2(R,Nisynch);
|
|
|
|
claim_R3(R,Secret,Kir);
|
|
|
|
claim_R4(R,Empty,(Fresh,Kir));
|
2005-05-23 13:35:58 +01:00
|
|
|
}
|
|
|
|
|
2005-05-02 10:24:26 +01:00
|
|
|
role S
|
2005-05-23 13:35:58 +01:00
|
|
|
{
|
2005-05-02 10:24:26 +01:00
|
|
|
var W: Ticket;
|
2005-05-23 13:35:58 +01:00
|
|
|
const Kir: SessionKey;
|
2005-05-02 10:24:26 +01:00
|
|
|
const T: TimeStamp;
|
|
|
|
|
2005-05-23 13:35:58 +01:00
|
|
|
read_1(I,S, I,R );
|
|
|
|
send_2(S,I, {R, Kir, T, {Kir, I,T}k(R,S)}k(I,S));
|
|
|
|
}
|
2005-05-02 10:24:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
const Alice,Bob,Simon,Eve: Agent;
|
|
|
|
|
|
|
|
untrusted Eve;
|
|
|
|
const kee: SessionKey;
|
|
|
|
const tee: TimeStamp;
|
|
|
|
compromised k(Eve,Simon);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# General scenario, 2 parallel runs of the protocol
|
|
|
|
# Note because the modelchecker does not support tickets this might not
|
|
|
|
# be very useful
|
|
|
|
|
2005-05-10 15:08:51 +01:00
|
|
|
run denningSaccoLowe.I(Agent,Agent,Simon);
|
|
|
|
run denningSaccoLowe.R(Agent,Agent,Simon);
|
|
|
|
run denningSaccoLowe.S(Agent,Agent,Simon);
|
|
|
|
run denningSaccoLowe.I(Agent,Agent,Simon);
|
|
|
|
run denningSaccoLowe.R(Agent,Agent,Simon);
|
|
|
|
run denningSaccoLowe.S(Agent,Agent,Simon);
|