Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2023_ow-auth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ida-rtslab
public-code
2023_ow-auth
Commits
4863ed93
Commit
4863ed93
authored
2 years ago
by
Johannes Wilson
Browse files
Options
Downloads
Patches
Plain Diff
Upload New File
parents
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prot-A.spthy
+74
-0
74 additions, 0 deletions
prot-A.spthy
with
74 additions
and
0 deletions
prot-A.spthy
0 → 100644
+
74
−
0
View file @
4863ed93
theory protA
begin
builtins: revealing-signing
/*
Model for the protocol in Figure 4 (a)
Author: Johannes Wilson
Date: 2023-05-02
*/
rule Register_pk: // Registering a public key
[ Fr(~private_key) ]
--[ KeyReg( $A ) ]->
[
!Get_private_key($A, ~private_key),
!Get_public_key($A, pk(~private_key)),
Out(pk(~private_key))
]
rule Initiator_1:
[ !Get_public_key(R, Rpk), !Get_private_key(I, Iltk) ]
--[ ]->
[ Out(<I,R>), Initiator_1(I, R, Rpk) ]
rule Responder_1:
[ In(<I,R>), !Get_private_key(R, private_key), Fr(~n) ]
--[ Running(R, I, ~n) ]->
[ Out(<I, revealSign(<R,~n>, private_key)>), Out(~n) ]
rule Initiator_2:
[ In(<I, sig>), Initiator_1(I, R, Rpk), In(n) ]
--[ Eq(revealVerify(sig, <R, n>, Rpk), true), Commit(I, R, n) ]->
[]
restriction equality:
"All x y #i. Eq(x,y) @i ==> x = y"
lemma runnable:
exists-trace
"Ex I R n #i. Commit(I, R, n) @i"
// This lemma shows that the protocol in Figure 4 (a) fulfills one-way non-injectve agreement
lemma ow_ni_agree:
"All I R n #i.
Commit(I, R, n) @i
==> ( Ex I2 #j. Running(R, I2, n) @j )"
// This lemma shows that there is indeed a trace which does not fulfill weak agreement
lemma not_w_agree:
exists-trace
"not (All I R n #i. Commit(I, R, n) @i
==> ( Ex n2 #j. Running(R, I, n2) @j ))"
/*
tamarin-prover 1.6.1
==============================================================================
summary of summaries:
analyzed: prot-A.spthy
runnable (exists-trace): verified (5 steps)
ow_ni_agree (all-traces): verified (5 steps)
not_w_agree (exists-trace): verified (5 steps)
==============================================================================
*/
end
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment