author | paulson |
Tue, 22 Jul 1997 11:21:17 +0200 | |
changeset 3541 | 2f5ac0f047a6 |
parent 3519 | ab0a9fbed4c0 |
child 3659 | eddedfe2f3f8 |
permissions | -rw-r--r-- |
2318 | 1 |
(* Title: HOL/Auth/NS_Public |
2 |
ID: $Id$ |
|
3 |
Author: Lawrence C Paulson, Cambridge University Computer Laboratory |
|
4 |
Copyright 1996 University of Cambridge |
|
5 |
||
6 |
Inductive relation "ns_public" for the Needham-Schroeder Public-Key protocol. |
|
2538 | 7 |
Version incorporating Lowe's fix (inclusion of B's identity in round 2). |
2318 | 8 |
*) |
9 |
||
10 |
NS_Public = Public + |
|
11 |
||
3519
ab0a9fbed4c0
Changing "lost" from a parameter of protocol definitions to a constant.
paulson
parents:
3466
diff
changeset
|
12 |
consts ns_public :: event list set |
2549 | 13 |
|
2318 | 14 |
inductive ns_public |
15 |
intrs |
|
16 |
(*Initial trace is empty*) |
|
17 |
Nil "[]: ns_public" |
|
18 |
||
19 |
(*The spy MAY say anything he CAN say. We do not expect him to |
|
20 |
invent new nonces here, but he can also use NS1. Common to |
|
21 |
all similar protocols.*) |
|
22 |
Fake "[| evs: ns_public; B ~= Spy; |
|
3519
ab0a9fbed4c0
Changing "lost" from a parameter of protocol definitions to a constant.
paulson
parents:
3466
diff
changeset
|
23 |
X: synth (analz (sees Spy evs)) |] |
2318 | 24 |
==> Says Spy B X # evs : ns_public" |
25 |
||
26 |
(*Alice initiates a protocol run, sending a nonce to Bob*) |
|
2497 | 27 |
NS1 "[| evs: ns_public; A ~= B; Nonce NA ~: used evs |] |
28 |
==> Says A B (Crypt (pubK B) {|Nonce NA, Agent A|}) |
|
2451
ce85a2aafc7a
Extensive tidying and simplification, largely stemming from
paulson
parents:
2318
diff
changeset
|
29 |
# evs : ns_public" |
2318 | 30 |
|
31 |
(*Bob responds to Alice's message with a further nonce*) |
|
2497 | 32 |
NS2 "[| evs: ns_public; A ~= B; Nonce NB ~: used evs; |
3466
30791e5a69c4
Corrected indentations and margins after the renaming of "set_of_list"
paulson
parents:
3465
diff
changeset
|
33 |
Says A' B (Crypt (pubK B) {|Nonce NA, Agent A|}) : set evs |] |
2497 | 34 |
==> Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB, Agent B|}) |
2451
ce85a2aafc7a
Extensive tidying and simplification, largely stemming from
paulson
parents:
2318
diff
changeset
|
35 |
# evs : ns_public" |
2318 | 36 |
|
37 |
(*Alice proves her existence by sending NB back to Bob.*) |
|
3541
2f5ac0f047a6
Deleted the superfluous assumption A ~= B, which must hold anyway by induction
paulson
parents:
3519
diff
changeset
|
38 |
NS3 "[| evs: ns_public; |
3465 | 39 |
Says A B (Crypt (pubK B) {|Nonce NA, Agent A|}) : set evs; |
2516
4d68fbe6378b
Now with Andy Gordon's treatment of freshness to replace newN/K
paulson
parents:
2497
diff
changeset
|
40 |
Says B' A (Crypt (pubK A) {|Nonce NA, Nonce NB, Agent B|}) |
3465 | 41 |
: set evs |] |
2318 | 42 |
==> Says A B (Crypt (pubK B) (Nonce NB)) # evs : ns_public" |
43 |
||
44 |
(**Oops message??**) |
|
45 |
||
46 |
end |