scyther/gui/Protocols/MultiProtocolAttacks/woo-lam-pi-f.spdl

42 lines
720 B
Plaintext
Raw Normal View History

# Woo and Lam Pi f
#
# Modelled after the description in the SPORE library
# http://www.lsv.ens-cachan.fr/spore/wooLamPif.html
#
protocol woolamPi-f(I,R,S)
{
role I
{
var Nr: Nonce;
send_1(I,R, I);
2012-04-26 15:40:01 +01:00
recv_2(R,I, Nr);
send_3(I,R, {I,R,Nr}k(I,S));
}
role R
{
fresh Nr: Nonce;
var T: Ticket;
2012-04-26 15:40:01 +01:00
recv_1(I,R, I);
send_2(R,I, Nr);
2012-04-26 15:40:01 +01:00
recv_3(I,R, T);
send_4(R,S, {I, R, Nr, T}k(R,S));
2012-04-26 15:40:01 +01:00
recv_5(S,R, {I, R, Nr}k(R,S));
claim_R1(R,Nisynch);
}
role S
{
var Nr: Nonce;
2012-04-26 15:40:01 +01:00
recv_4(R,S, {I, R, Nr,{I,R,Nr}k(I,S)}k(R,S));
send_5(S,R, {I, R, Nr}k(R,S));
}
}