2004-09-01 21:24:39 +01:00
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
protocol r5bound(I,R)
|
|
|
|
{
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var k1: Nonce;
|
|
|
|
var ni: Nonce;
|
|
|
|
const k2: Nonce;
|
|
|
|
|
|
|
|
read_1 (I,R, ni );
|
|
|
|
send_2 (R,I, { ni }sk(R) );
|
|
|
|
read_3 (I,R, {{{ {k1}pk(R) }sk(I)}sk(I)}sk(I) );
|
|
|
|
send_4 (R,I, {k2}k1 );
|
|
|
|
|
|
|
|
claim_6 (R, Secret, k2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const Alice, Bob: Agent;
|
2004-10-18 14:45:58 +01:00
|
|
|
const ne: Nonce;
|
2004-09-01 21:24:39 +01:00
|
|
|
|
2004-10-18 14:45:58 +01:00
|
|
|
run r5bound.R(Agent);
|
|
|
|
run r5bound.R(Agent);
|
2004-09-01 21:24:39 +01:00
|
|
|
|
2004-10-18 14:45:58 +01:00
|
|
|
run r5bound.R(Agent);
|
|
|
|
run r5bound.R(Agent);
|
2004-09-01 21:24:39 +01:00
|
|
|
|
2004-10-18 14:45:58 +01:00
|
|
|
run r5bound.R(Agent);
|
|
|
|
run r5bound.R(Agent);
|