- Testing with this protocol didn't yet reveal the desired behaviour, as
Arachne -m2 strategies aren't working fully yet.
This commit is contained in:
parent
8570465e48
commit
947fe654f1
51
spdl/five-run-bound.spdl
Normal file
51
spdl/five-run-bound.spdl
Normal file
@ -0,0 +1,51 @@
|
||||
const pk: Function;
|
||||
secret sk: Function;
|
||||
inversekeys (pk,sk);
|
||||
|
||||
protocol r5bound(I,R)
|
||||
{
|
||||
role I
|
||||
{
|
||||
const k1: Nonce;
|
||||
const ni: Nonce;
|
||||
var k2: Nonce;
|
||||
|
||||
send_1 (I,R, ni );
|
||||
read_2 (R,I, { ni }sk(R) );
|
||||
send_3 (I,R, {{{ {k1}pk(R) }sk(I)}sk(I)}sk(I) );
|
||||
read_4 (R,I, {k2}k1 );
|
||||
|
||||
claim_5 (I, Secret, k2);
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
run r5bound.I(Agent,Agent);
|
||||
run r5bound.R(Agent,Agent);
|
||||
run r5bound.I(Agent,Agent);
|
||||
run r5bound.R(Agent,Agent);
|
||||
|
||||
run r5bound.I(Agent,Agent);
|
||||
run r5bound.R(Agent,Agent);
|
||||
run r5bound.I(Agent,Agent);
|
||||
run r5bound.R(Agent,Agent);
|
||||
|
||||
run r5bound.I(Agent,Agent);
|
||||
run r5bound.R(Agent,Agent);
|
||||
run r5bound.I(Agent,Agent);
|
||||
run r5bound.R(Agent,Agent);
|
Loading…
Reference in New Issue
Block a user