2004-10-14 15:35:01 +01:00
|
|
|
usertype TimeStamp, LifeTime;
|
|
|
|
|
2004-10-14 15:22:59 +01:00
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
protocol spliceAS(C,AS,S)
|
|
|
|
{
|
|
|
|
role C
|
|
|
|
{
|
|
|
|
const N1,N2: Nonce;
|
2004-10-14 15:35:01 +01:00
|
|
|
const T: TimeStamp;
|
|
|
|
const L: LifeTime;
|
2004-10-14 15:22:59 +01:00
|
|
|
|
|
|
|
send_1(C,AS, C, S, N1 );
|
|
|
|
read_2(AS,C, AS, {AS, C, N1, pk(S)}sk(AS) );
|
|
|
|
send_3(C,S, C, S, {C, T, L, {N2}pk(S)}sk(C) );
|
|
|
|
read_6(S,C, S, C, {S, N2}pk(C) );
|
|
|
|
|
|
|
|
claim_7(C, Secret, N2);
|
2004-10-14 15:41:27 +01:00
|
|
|
claim_9(C, Niagree);
|
|
|
|
claim_10(C, Nisynch);
|
2004-10-14 15:22:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
role AS
|
|
|
|
{
|
|
|
|
var N1,N3: Nonce;
|
|
|
|
|
|
|
|
read_1(C,AS, C, S, N1 );
|
|
|
|
send_2(AS,C, AS, {AS, C, N1, pk(S)}sk(AS) );
|
|
|
|
read_4(S,AS, S, C, N3 );
|
|
|
|
send_5(AS,S, AS, {AS, S, N3, pk(C)}sk(AS) );
|
|
|
|
}
|
|
|
|
|
|
|
|
role S
|
|
|
|
{
|
|
|
|
const N3: Nonce;
|
|
|
|
var N2: Nonce;
|
2004-10-14 15:35:01 +01:00
|
|
|
var T: TimeStamp;
|
|
|
|
var L: LifeTime;
|
2004-10-14 15:22:59 +01:00
|
|
|
|
|
|
|
var ni: Nonce;
|
|
|
|
const nr: Nonce;
|
|
|
|
|
|
|
|
read_3(C,S, C, S, {C, T, L, {N2}pk(S)}sk(C) );
|
|
|
|
send_4(S,AS, S, C, N3 );
|
|
|
|
read_5(AS,S, AS, {AS, S, N3, pk(C)}sk(AS) );
|
|
|
|
send_6(S,C, S, C, {S, N2}pk(C) );
|
|
|
|
|
|
|
|
claim_8(S, Secret, N2);
|
2004-10-14 15:41:27 +01:00
|
|
|
claim_11(S, Niagree);
|
|
|
|
claim_12(S, Nisynch);
|
2004-10-14 15:22:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-10-14 15:41:54 +01:00
|
|
|
const Al,Bo,Eve: Agent;
|
2004-10-14 15:22:59 +01:00
|
|
|
|
|
|
|
untrusted Eve;
|
|
|
|
const ne: Nonce;
|
|
|
|
compromised sk(Eve);
|
|
|
|
|
|
|
|
run spliceAS.C(Agent,Agent,Agent);
|
|
|
|
run spliceAS.AS(Agent,Agent,Agent);
|
|
|
|
run spliceAS.S(Agent,Agent,Agent);
|
|
|
|
|
|
|
|
|