Cleanup and restructuring of testing directory setup.
This commit is contained in:
22
testing/five-run-bound.spdl
Normal file
22
testing/five-run-bound.spdl
Normal file
@@ -0,0 +1,22 @@
|
||||
const pk: Function;
|
||||
secret sk: Function;
|
||||
inversekeys (pk,sk);
|
||||
|
||||
protocol r5bound(I,R)
|
||||
{
|
||||
role R
|
||||
{
|
||||
var k1: Nonce;
|
||||
var ni: Nonce;
|
||||
fresh k2: Nonce;
|
||||
|
||||
recv_!1 (I,R, ni );
|
||||
send_!2 (R,I, { ni }sk(R) );
|
||||
recv_!3 (I,R, {{{ {k1}pk(R) }sk(I)}sk(I)}sk(I) );
|
||||
send_!4 (R,I, {k2}k1 );
|
||||
|
||||
claim_6 (R, Secret, k2);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user