2004-06-16 16:43:55 +01:00
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
2004-11-18 15:50:54 +00:00
|
|
|
protocol carkeyni2(I,R)
|
2004-06-16 16:43:55 +01:00
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
|
|
|
const ni: Nonce;
|
|
|
|
|
|
|
|
send_1(I,R, {R,ni}sk(I) );
|
|
|
|
send_2(I,R, {R,ni}sk(I) );
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var ni: Nonce;
|
|
|
|
|
|
|
|
read_1(I,R, {R,ni}sk(I) );
|
|
|
|
read_2(I,R, {R,ni}sk(I) );
|
|
|
|
claim_4(R,Nisynch);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const Alice,Bob,Eve: Agent;
|
|
|
|
|
|
|
|
untrusted Eve;
|
|
|
|
const nc: Nonce;
|
|
|
|
compromised sk(Eve);
|
|
|
|
|
2004-11-18 15:50:54 +00:00
|
|
|
run carkeyni2.I(Agent,Agent);
|
|
|
|
run carkeyni2.R(Agent,Agent);
|
|
|
|
run carkeyni2.I(Agent,Agent);
|
|
|
|
run carkeyni2.R(Agent,Agent);
|