Skip to content
Snippets Groups Projects
Unverified Commit 0028981e authored by mwh1g17's avatar mwh1g17 Committed by GitHub
Browse files

Merge pull request #1 from cybersoton/Testing/Practice

Merging Testing to Master Branch
parents 7f183c9a 33242ce8
No related branches found
No related tags found
No related merge requests found
File added
This diff is collapsed.
File added
usertype String;
const HelloWorld: String;
protocol hello(I,R)
{
role I {
fresh Icreate : Nonce;
var Irecieve : Nonce;
send_1(I,R, {I,Icreate} HelloWorld);
claim_i1(I,Secret,Icreate);
}
role R {
fresh Rcreate : Nonce;
var Rrecieve : Nonce;
recv_1(I,R, {I,Rrecieve} HelloWorld);
claim_r1(R,Secret,Rcreate);
}
}
\ No newline at end of file
protocol smartExchange(Meter,Monitor)
{
role Meter {
fresh M: Nonce;
var Confirm;
send_1(Meter,Monitor,{M}k(k));
recv_2(Monitor,Meter,{Confirm}k(k));
claim_Meter1(Meter, Secret, (k));
}
role Monitor {
var M;
fresh Confirm: Nonce;
recv_1(Meter,Monitor,{M}k(k));
send_2(Monitor,Meter,{Confirm}k(k));
claim_Monitor1(Monitor, Secret, (k));
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment