2004-02-20 11:37:28 +00:00
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
protocol nsl7(I,R)
|
|
|
|
{
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var ni;
|
|
|
|
const nr;
|
|
|
|
|
|
|
|
read_1(I,R, {I,ni}pk(R) );
|
|
|
|
send_2(R,I, {ni,nr,R}pk(I) );
|
|
|
|
read_3(I,R, {nr}pk(R) );
|
2005-03-03 15:29:35 +00:00
|
|
|
claim_4(R,Secret,ni);
|
|
|
|
claim_5(R,Secret,nr);
|
2004-02-20 11:37:28 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-11-18 13:15:19 +00:00
|
|
|
const Alice,Bob,Eve;
|
|
|
|
const ne;
|
|
|
|
untrusted Eve;
|
|
|
|
compromised sk(Eve);
|
2004-02-20 11:37:28 +00:00
|
|
|
|
2004-11-18 13:15:19 +00:00
|
|
|
run nsl7.R(Agent,Agent);
|
|
|
|
run nsl7.R(Agent,Agent);
|