scyther/protocols/misc/five-run-bound.spdl

25 lines
360 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00: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 );
2006-11-21 13:40:50 +00:00
claim_6 (R, Secret, k2);
}
}
const Alice, Bob: Agent;
const ne: Nonce;