scyther/protocols/misc/denning-sacco-shared.spdl

73 lines
992 B
Plaintext
Raw Normal View History

2006-11-21 13:40:50 +00:00
/*
* Denning-Sacco shared key
* CJ, but modeled after Sjouke's protocol list
*/
/* default includes */
/* asymmetric */
const pk,hash: Function;
secret sk,unhash: Function;
/* symmetric */
usertype SessionKey, Time, Ticket;
secret k: Function;
/* agents */
/* untrusted e */
untrusted e;
const kee: SessionKey;
compromised k(e,e);
compromised k(e,a);
compromised k(e,b);
compromised k(a,e);
compromised k(b,e);
protocol denningsaccosh(A,S,B)
{
role A
{
var t: Time;
var T: Ticket;
var kab: SessionKey;
send_1 (A,S, A,S );
2012-05-02 22:26:41 +01:00
recv_2 (S,A, {B, kab, t, T}k(A,S) );
2006-11-21 13:40:50 +00:00
send_3 (A,B, T);
claim_4 (A, Secret, kab);
claim_5 (A, Nisynch);
claim_6 (A, Niagree);
}
role S
{
fresh t: Time;
fresh kab: SessionKey;
2006-11-21 13:40:50 +00:00
2012-05-02 22:26:41 +01:00
recv_1 (A,S, A,S );
2006-11-21 13:40:50 +00:00
send_2 (S,A, {B, kab, t, { kab, A,t }k(B,S) }k(A,S) );
}
role B
{
var t: Time;
var kab: SessionKey;
2012-05-02 22:26:41 +01:00
recv_3 (A,B, { kab, A,t }k(B,S) );
2006-11-21 13:40:50 +00:00
claim_7 (B, Secret, kab);
claim_8 (B, Nisynch);
claim_9 (B, Niagree);
}
}