scyther/spdl/SPORE/denning-sacco.spdl

70 lines
1.5 KiB
Plaintext
Raw Normal View History

# Denning-Sacco shared key
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/denningSacco.html
#
# Note:
# This protocol uses a ticket so scyther will only be able to verify
# the protocol using the ARACHNE engine (-a) and type 2 matching (-m2)
#
usertype Key;
usertype Ticket;
usertype SessionKey;
usertype TimeStamp;
secret k: Function;
protocol denningSacco(I,R,S)
{
2005-05-23 13:35:58 +01:00
role I
{
var W: Ticket;
2005-05-23 13:35:58 +01:00
var Kir: SessionKey;
var T: TimeStamp;
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);
claim_4(I,Nisynch);
}
role R
{
var Kir: SessionKey;
var T: TimeStamp;
2005-05-23 13:35:58 +01:00
read_3(I,R, {Kir,I,T}k(R,S));
claim_8(R,Nisynch);
}
role S
2005-05-23 13:35:58 +01:00
{
var W: Ticket;
2005-05-23 13:35:58 +01:00
const Kir: SessionKey;
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));
}
}
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
run denningSacco.I(Agent,Agent,Simon);
run denningSacco.R(Agent,Agent,Simon);
run denningSacco.S(Agent,Agent,Simon);
run denningSacco.I(Agent,Agent,Simon);
run denningSacco.R(Agent,Agent,Simon);
run denningSacco.S(Agent,Agent,Simon);