scyther/spdl/SPORE/ccitt509-1c.spdl

51 lines
1.1 KiB
Plaintext
Raw Normal View History

# CCITT X.509 (1c)
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/ccittx509_1c.html
#
# Note:
# According to SPORE there are no known attacks on this protocol
#
const pk,hash: Function;
secret sk,unhash: Function;
inversekeys (hash,unhash);
inversekeys(pk,sk);
usertype Timestamp;
protocol ccitt509-1c(I,R)
{
2005-05-23 13:35:58 +01:00
role I
{
const Ta: Timestamp;
const Na,Xa,Ya: Nonce;
2005-05-23 13:35:58 +01:00
send_1(I,R, I,{Ta, Na, R, Xa,{Ya,{hash(Ya)}sk(I)}pk(R)}sk(I));
# claim_2(I,Nisynch);
# This claim is useless as there are no preceding read events
2005-05-23 13:35:58 +01:00
}
role R
{
var Ta: Timestamp;
var Na,Xa,Ya: Nonce;
2005-05-23 13:35:58 +01:00
read_1(I,R, I,{Ta, Na, R, Xa,{Ya,{hash(Ya)}sk(I)}pk(R)}sk(I));
claim_3(R,Nisynch);
# There should also be Fresh Xa and Fresh Ya claims here
2005-05-23 13:35:58 +01:00
}
}
const Alice,Bob,Eve: Agent;
untrusted Eve;
const ne: Nonce;
const te: Timestamp;
compromised sk(Eve);
# General scenario, 2 parallel runs of the protocol
run ccitt509-1c.I(Agent,Agent);
run ccitt509-1c.R(Agent,Agent);
run ccitt509-1c.I(Agent,Agent);
run ccitt509-1c.R(Agent,Agent);