scyther/gui/Protocols/smartright.spdl

47 lines
967 B
Plaintext
Raw Normal View History

2006-11-21 13:42:06 +00:00
# SmartRight view-only
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/smartright_viewonly.html
#
# Note:
# According to SPORE there are no known attacks on this protocol
#
# Note:
# Scyther finds an attack because the value of VoR in te last message can
# be replaced with an arbitrary value
hashfunction hash;
2006-11-21 13:42:06 +00:00
usertype SessionKey;
usertype XorKey;
const Vor: XorKey;
protocol smartright(I,R)
{
role I
{
fresh VoKey: SessionKey;
fresh VoR: XorKey;
fresh CW;
2006-11-21 13:42:06 +00:00
var VoRi: Nonce;
send_1(I,R, {VoKey,{CW}VoR}k(I,R));
2012-04-26 15:40:01 +01:00
recv_2(R,I, VoRi);
2006-11-21 13:42:06 +00:00
send_3(I,R, VoR, {{VoRi}hash}VoKey);
}
role R
{
var T: Ticket;
var VoR: XorKey;
var VoKey: SessionKey;
fresh VoRi: Nonce;
2006-11-21 13:42:06 +00:00
2012-04-26 15:40:01 +01:00
recv_1(I,R, {VoKey,T}k(I,R));
2006-11-21 13:42:06 +00:00
send_2(R,I, VoRi);
2012-04-26 15:40:01 +01:00
recv_3(I,R, VoR,{{VoRi}hash}VoKey);
2006-11-21 13:42:06 +00:00
claim_R1(R,Nisynch);
}
}