2007-09-18 14:25:32 +01:00
|
|
|
/*
|
|
|
|
* Athena breaker protocol
|
|
|
|
*/
|
|
|
|
|
|
|
|
// PKI infrastructure
|
|
|
|
|
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
// The protocol description
|
|
|
|
|
|
|
|
protocol abreaker(I,R)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh ni: Nonce;
|
2007-09-18 14:25:32 +01:00
|
|
|
|
|
|
|
send_!1(I,R, {{I,ni}pk(R)}pk(R) );
|
|
|
|
|
|
|
|
claim_i1(I,Secret,ni);
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var T:Ticket;
|
|
|
|
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_!1(I,R, {T}pk(R) );
|
2007-09-18 14:25:32 +01:00
|
|
|
send_!2(R,I, T );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// The agents in the system
|
|
|
|
|
|
|
|
|
|
|
|
// An untrusted agent, with leaked information
|
|
|
|
|
|
|
|
|