2006-11-21 13:40:50 +00:00
|
|
|
/*
|
|
|
|
Samasc broken
|
|
|
|
*/
|
|
|
|
|
|
|
|
usertype Key;
|
|
|
|
|
|
|
|
const pk: Function;
|
|
|
|
secret sk: Function;
|
|
|
|
|
|
|
|
inversekeys (pk,sk);
|
|
|
|
|
|
|
|
protocol samascbroken(I,R)
|
|
|
|
{
|
|
|
|
role R
|
|
|
|
{
|
|
|
|
const nr: Nonce;
|
|
|
|
var kir: Key;
|
|
|
|
|
2007-01-29 15:05:15 +00:00
|
|
|
read_!1a (I,R, { kir,I }pk(R) );
|
|
|
|
send_!1b (R,I, {nr,R}pk(I) );
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
/* Commenting out these two lines yields an attack: */
|
2007-01-29 15:05:15 +00:00
|
|
|
read_!2a (I,R, { nr }kir );
|
|
|
|
send_!2b (R,I, { I,R,nr }kir );
|
2006-11-21 13:40:50 +00:00
|
|
|
|
2007-01-29 15:05:15 +00:00
|
|
|
read_!3 (I,R, { I,R }kir );
|
2006-11-21 13:40:50 +00:00
|
|
|
|
|
|
|
claim_4 (R, Secret, kir );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const a,b,e: Agent;
|
|
|
|
|
|
|
|
untrusted e;
|
|
|
|
compromised sk(e);
|
|
|
|
const ne: Nonce;
|