Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
V
VerifyTESLA
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
joydeep
VerifyTESLA
Commits
033a2a19
Commit
033a2a19
authored
Mar 20, 2019
by
Kayla Mesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Began specifying the key chain
parent
e4086908
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
maude/examples/tesla.psl
maude/examples/tesla.psl
+20
-2
No files found.
maude/examples/tesla.psl
View file @
033a2a19
spec TESLA is
Theory
types Nat Zero One NonZero Bool True False .
types Nat Zero One NonZero Bool True False
Key KeyMAC
.
subtypes NonZero Zero Key < Nat .
subtypes One < NonZero .
subtypes True False < Bool .
...
...
@@ -32,9 +32,27 @@ Theory
eq TInit(ZERO) = T0 .
eq -(x,ZERO) = x .
eq equals(y,y) = TRUE .
eq equals(z,z) = TRUE . // Do we need this ?
eq equals(y,z) = FALSE .
eq leq(y,z) = equals(y,+(z,v)) .
eq geq(y,z) = leq(z,y) .
eq leq(ZERO,x) = TRUE .
eq leq(x,N) = TRUE .
eq leq(tsrc,+(trcv + -(TR,TS))) = TRUE
eq leq(tsrc,+(trcv, -(TR,TS))) = TRUE .
// Sender setup
op key_commit : -> Key .
op s : -> Nat . // Start time interval
op d : -> Nat . // Delay
op f : Nat -> Key .
op g : Key -> KeyMAC .
op _^_ : Key Nat -> Key .
op _;_ : Msg Msg -> Msg .
eq key_commit = f(s - d) .
eq f(x) = ^(f(N), -(N, x)) .
eq f(s - d) = ^(f(x), -(+(i,d),s) .
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment