2006-11-21 13:40:50 +00:00
|
|
|
usertype Data;
|
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
protocol ccitt509(I,R)
|
|
|
|
{
|
|
|
|
role I
|
|
|
|
{
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh xi,yi: Data;
|
|
|
|
fresh ni: Nonce;
|
2006-11-21 13:40:50 +00:00
|
|
|
var nr: Nonce;
|
|
|
|
var yr,xr: Data;
|
|
|
|
|
|
|
|
send_1(I,R, I,{ni, R, xi, {yi}pk(R) }sk(I) );
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_2(R,I, R,{nr, I, ni, xr, {yr}pk(I) }sk(R) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_3(I,R, I,{R,nr}sk(I) );
|
|
|
|
|
|
|
|
claim_4(I,Secret,yi);
|
|
|
|
claim_5(I,Secret,yr);
|
|
|
|
claim_6(I,Nisynch);
|
|
|
|
claim_7(I,Niagree);
|
|
|
|
}
|
|
|
|
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
var xi,yi: Data;
|
|
|
|
var ni: Nonce;
|
2012-05-02 22:01:08 +01:00
|
|
|
fresh nr: Nonce;
|
|
|
|
fresh yr,xr: Data;
|
2006-11-21 13:40:50 +00:00
|
|
|
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_1(I,R, I,{ni, R, xi, {yi}pk(R) }sk(I) );
|
2006-11-21 13:40:50 +00:00
|
|
|
send_2(R,I, R,{nr, I, ni, xr, {yr}pk(I) }sk(R) );
|
2012-05-02 22:26:41 +01:00
|
|
|
recv_3(I,R, I,{R,nr}sk(I) );
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
claim_8(R,Secret,yi);
|
|
|
|
claim_9(R,Secret,yr);
|
|
|
|
claim_10(R,Nisynch);
|
|
|
|
claim_11(R,Niagree);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const de: Data;
|
|
|
|
|