scyther/gui/Protocols/ccitt509-3.spdl

46 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2006-11-21 13:42:06 +00:00
# CCITT X.509 (3)
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/ccittx509_3.html
#
# Note:
# The protocol description also states that Xa and Ya should be fresh
# this can not be verified using scyther
#
usertype Timestamp;
protocol ccitt509-3(I,R)
{
role I
{
fresh Ta: Timestamp;
2006-11-21 13:42:06 +00:00
var Tb: Timestamp;
fresh Na,Xa,Ya: Nonce;
2006-11-21 13:42:06 +00:00
var Xb,Nb,Yb: Nonce;
send_1(I,R, I,{Ta, Na, R, Xa,{Ya}pk(R)}sk(I));
2012-04-26 15:40:01 +01:00
recv_2(R,I, R,{Tb, Nb, I, Na, Xb,{Yb}pk(I)}sk(R));
2006-11-21 13:42:06 +00:00
send_3(I,R, I, {Nb}sk(I));
claim_I1(I,Nisynch);
claim_I2(I,Secret,Ya);
claim_I3(I,Secret,Yb);
}
role R
{
var Ta: Timestamp;
fresh Tb: Timestamp;
2006-11-21 13:42:06 +00:00
var Na,Xa,Ya: Nonce;
fresh Xb,Yb,Nb: Nonce;
2006-11-21 13:42:06 +00:00
2012-04-26 15:40:01 +01:00
recv_1(I,R, I,{Ta, Na, R, Xa,{Ya}pk(R)}sk(I));
2006-11-21 13:42:06 +00:00
send_2(R,I, R,{Tb, Nb, I, Na, Xb,{Yb}pk(I)}sk(R));
2012-04-26 15:40:01 +01:00
recv_3(I,R, I, {Nb}sk(I));
2006-11-21 13:42:06 +00:00
claim_R1(R,Nisynch);
claim_R2(R,Secret,Ya);
claim_R3(R,Secret,Yb);
# There should also be Fresh Xa and Fresh Ya claims here
}
}