- Modified everything for explicit usertype declarations.

This commit is contained in:
ccremers 2004-02-22 15:22:19 +00:00
parent 95f8558514
commit 635e583039
9 changed files with 16 additions and 1 deletions

View File

@ -5,6 +5,8 @@
Tried to stay as close as possible to compare timing results.
*/
usertype Key;
const pk,hash: Function;
secret sk: Function;

View File

@ -5,6 +5,8 @@
Tried to stay as close as possible to compare timing results.
*/
usertype Key;
const pk,hash: Function;
secret sk,unhash: Function;

View File

@ -4,6 +4,8 @@ secret const k : Function;
http://www.lsv.ens-cachan.fr/spore/otwayRees.html
*/
usertype String, SesKey, Ticket, Server;
protocol otwayrees(A,B,S)
{
role A

View File

@ -5,6 +5,8 @@
#define CLIENTK hash(sid,M,na,pa,a,nb,pb,b,false)
#define SERVERK hash(sid,M,na,pa,a,nb,pb,b,true)
usertype Params, Bool, SessionID;
const pk,hash: Function;
secret sk,unhash: Function;
inversekeys(pk,sk);

View File

@ -1,3 +1,4 @@
usertype SesKey, Server;
secret const k : Function;
/* Version from the Brutus reports

View File

@ -1,3 +1,4 @@
usertype Server, SessionKey, Token, SymmetricKey;
secret k: Function;
const Alice, Bob, Charlie, Eve: Agent;

View File

@ -1,3 +1,4 @@
usertype Server, SessionKey, Token, Ticket;
secret k: Function;
const Alice, Bob, Charlie, Eve: Agent;

View File

@ -2,8 +2,10 @@
// Type flaw
// This version actually works!
usertype Server;
const a,b,c : Agent;
const s : Simon;
const s : Server;
secret k : Function;

View File

@ -1,5 +1,7 @@
// Yahalom protocol
usertype Sessionkey;
const a,b,s,Eve : Agent;
secret k : Function;