2006-11-21 13:40:50 +00:00
|
|
|
/*
|
|
|
|
* Breaker for localclaims protocol
|
|
|
|
*
|
|
|
|
* Starts out as NSL3; last message (label3) has added name to avoid
|
|
|
|
* confusion with the later messages.
|
|
|
|
*
|
|
|
|
* Added messages labeled with x1 and x2 to allow for breaking the other
|
|
|
|
* protocol.
|
|
|
|
*/
|
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
protocol lcbreaker(I,R)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh ni: Nonce;
|
2006-11-21 13:40:50 +00:00
|
|
|
var nr: Nonce;
|
|
|
|
var x: Nonce;
|
|
|
|
|
|
|
|
send_1(I,R, {I,ni}pk(R) );
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_2(R,I, {ni,nr,R}pk(I) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_3(I,R, {nr,I}pk(R) );
|
|
|
|
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_x1(R,I, { x }pk(I) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_x2(I,R, { x }ni );
|
|
|
|
|
|
|
|
claim_i1(I,Secret,ni);
|
|
|
|
claim_i2(I,Secret,nr);
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var ni: Nonce;
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh nr: Nonce;
|
|
|
|
fresh x: Nonce;
|
2006-11-21 13:40:50 +00:00
|
|
|
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_1(I,R, {I,ni}pk(R) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_2(R,I, {ni,nr,R}pk(I) );
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_3(I,R, {nr,I}pk(R) );
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
send_x1(R,I, { x }pk(I) );
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_x2(I,R, { x }ni );
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
claim_r1(R,Secret,ni);
|
|
|
|
claim_r2(R,Secret,nr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|