scyther/spdl/kaochow-palm.spdl

68 lines
1.3 KiB
Plaintext
Raw Normal View History

2004-08-30 15:40:12 +01:00
usertype Sessionkey;
2004-08-30 23:12:18 +01:00
usertype Ticket;
2004-08-30 15:40:12 +01:00
secret k: Function;
protocol kaochowPalm(I,R,S)
{
role I
{
const ni: Nonce;
2004-08-30 23:12:18 +01:00
var nr: Nonce;
var kir: Sessionkey;
2004-08-30 15:40:12 +01:00
2004-08-30 23:12:18 +01:00
send_1 (I,S, I,R,ni);
read_3 (R,I, {I,R,ni,kir}k(I,S), {ni}kir, nr );
send_4 (I,R, {nr}kir );
claim_5 (I, Nisynch);
claim_6 (I, Niagree);
claim_7 (I, Secret, kir);
2004-08-30 15:40:12 +01:00
}
role R
{
2004-08-30 23:12:18 +01:00
var ni: Nonce;
const nr: Nonce;
var kir: Sessionkey;
var T;
read_2 (S,R, { T, { I,R,ni,kir }k(R,S) }k(R,S) );
send_3 (R,I, T, {ni}kir, nr );
read_4 (I,R, {nr}kir );
claim_8 (R, Nisynch);
claim_9 (R, Niagree);
claim_10 (R, Secret, kir);
2004-08-30 15:40:12 +01:00
}
role S
{
2004-08-30 23:12:18 +01:00
var ni: Nonce;
const kir: Sessionkey;
read_1 (I,S, I,R,ni);
send_2 (S,R, { {I,R,ni,kir}k(I,S), { I,R,ni,kir }k(R,S) }k(R,S) );
2004-08-30 15:40:12 +01:00
}
}
const Alice,Bob,Simon,Eve: Agent;
untrusted Eve;
const ne: Nonce;
2004-08-30 23:12:18 +01:00
const te: Ticket;
const ke: Sessionkey;
compromised k(Eve,Eve);
compromised k(Eve,Alice);
compromised k(Eve,Bob);
compromised k(Eve,Simon);
compromised k(Alice,Eve);
compromised k(Bob,Eve);
compromised k(Simon,Eve);
2004-08-30 15:40:12 +01:00
run kaochowPalm.I(Agent,Agent,Simon);
run kaochowPalm.R(Agent,Agent,Simon);
run kaochowPalm.S(Agent,Agent,Simon);
run kaochowPalm.I(Agent,Agent,Simon);
run kaochowPalm.R(Agent,Agent,Simon);
run kaochowPalm.S(Agent,Agent,Simon);