23 AddIffs (map simp_of_act [Fake_def, NS1_def, NS2_def, NS3_def]); |
27 AddIffs (map simp_of_act [Fake_def, NS1_def, NS2_def, NS3_def]); |
24 |
28 |
25 Addsimps [Nprg_def RS def_prg_simps]; |
29 Addsimps [Nprg_def RS def_prg_simps]; |
26 |
30 |
27 |
31 |
28 (*A "possibility property": there are traces that reach the end*) |
32 (*A "possibility property": there are traces that reach the end. |
|
33 Replace by LEADSTO proof!*) |
29 Goal "A ~= B ==> EX NB. EX s: reachable Nprg. \ |
34 Goal "A ~= B ==> EX NB. EX s: reachable Nprg. \ |
30 \ Says A B (Crypt (pubK B) (Nonce NB)) : set s"; |
35 \ Says A B (Crypt (pubK B) (Nonce NB)) : set s"; |
31 by (REPEAT (resolve_tac [exI,bexI] 1)); |
36 by (REPEAT (resolve_tac [exI,bexI] 1)); |
32 by (res_inst_tac [("act", "NS3")] reachable.Acts 2); |
37 by (res_inst_tac [("act", "NS3")] reachable.Acts 2); |
33 by (res_inst_tac [("act", "NS2")] reachable.Acts 3); |
38 by (res_inst_tac [("act", "NS2")] reachable.Acts 3); |
50 |
55 |
51 by (rtac analz_impI 2); |
56 by (rtac analz_impI 2); |
52 by (auto_tac (claset() addSDs [spies_Says_analz_contraD], simpset())); |
57 by (auto_tac (claset() addSDs [spies_Says_analz_contraD], simpset())); |
53 *) |
58 *) |
54 |
59 |
55 val parts_induct_tac = |
60 fun ns_constrains_tac i = |
|
61 SELECT_GOAL |
|
62 (EVERY [REPEAT (eresolve_tac [Always_ConstrainsI] 1), |
|
63 REPEAT (resolve_tac [StableI, stableI, |
|
64 constrains_imp_Constrains] 1), |
|
65 rtac constrainsI 1, |
|
66 Full_simp_tac 1, |
|
67 REPEAT (FIRSTGOAL (etac disjE)), |
|
68 ALLGOALS (clarify_tac (claset() delrules [impI,impCE])), |
|
69 REPEAT (FIRSTGOAL analz_mono_contra_tac), |
|
70 ALLGOALS Asm_simp_tac]) i; |
|
71 |
|
72 (*Tactic for proving secrecy theorems*) |
|
73 val ns_induct_tac = |
56 (SELECT_GOAL o EVERY) |
74 (SELECT_GOAL o EVERY) |
57 [etac reachable.induct 1, |
75 [rtac AlwaysI 1, |
58 Force_tac 1, |
76 Force_tac 1, |
59 Full_simp_tac 1, |
77 (*"reachable" gets in here*) |
60 safe_tac (claset() delrules [impI,impCE]), |
78 rtac (Always_reachable RS Always_StableI) 1, |
61 REPEAT (FIRSTGOAL analz_mono_contra_tac), |
79 ns_constrains_tac 1]; |
62 ALLGOALS Asm_simp_tac]; |
|
63 |
80 |
64 |
81 |
65 (** Theorems of the form X ~: parts (spies evs) imply that NOBODY |
82 (** Theorems of the form X ~: parts (spies evs) imply that NOBODY |
66 sends messages containing X! **) |
83 sends messages containing X! **) |
67 |
84 |
68 (*Spy never sees another agent's private key! (unless it's bad at start)*) |
85 (*Spy never sees another agent's private key! (unless it's bad at start)*) |
69 (* |
86 Goal "Nprg : Always {s. (Key (priK A) : parts (spies s)) = (A : bad)}"; |
70 Goal "Nprg : Always {s. (Key (priK A) : parts (spies s)) = (A : bad)}"; |
87 by (ns_induct_tac 1); |
71 by (rtac AlwaysI 1); |
88 by (Blast_tac 1); |
72 by (Force_tac 1); |
|
73 by (constrains_tac 1); |
|
74 by Auto_tac; |
|
75 qed "Spy_see_priK"; |
|
76 *) |
|
77 |
|
78 Goal "s : reachable Nprg ==> (Key (priK A) : parts (spies s)) = (A : bad)"; |
|
79 by (etac reachable.induct 1); |
|
80 by (ALLGOALS Force_tac); |
|
81 qed "Spy_see_priK"; |
89 qed "Spy_see_priK"; |
82 Addsimps [Spy_see_priK]; |
90 Addsimps [impOfAlways Spy_see_priK]; |
83 |
91 |
84 Goal "s : reachable Nprg ==> (Key (priK A) : analz (spies s)) = (A : bad)"; |
92 Goal "Nprg : Always {s. (Key (priK A) : analz (spies s)) = (A : bad)}"; |
|
93 br (Always_reachable RS Always_weaken) 1; |
85 by Auto_tac; |
94 by Auto_tac; |
86 qed "Spy_analz_priK"; |
95 qed "Spy_analz_priK"; |
87 Addsimps [Spy_analz_priK]; |
96 Addsimps [impOfAlways Spy_analz_priK]; |
88 |
97 |
|
98 (** |
89 AddSDs [Spy_see_priK RSN (2, rev_iffD1), |
99 AddSDs [Spy_see_priK RSN (2, rev_iffD1), |
90 Spy_analz_priK RSN (2, rev_iffD1)]; |
100 Spy_analz_priK RSN (2, rev_iffD1)]; |
|
101 **) |
91 |
102 |
92 |
103 |
93 (**** Authenticity properties obtained from NS2 ****) |
104 (**** Authenticity properties obtained from NS2 ****) |
94 |
105 |
95 (*It is impossible to re-use a nonce in both NS1 and NS2, provided the nonce |
106 (*It is impossible to re-use a nonce in both NS1 and NS2, provided the nonce |
96 is secret. (Honest users generate fresh nonces.)*) |
107 is secret. (Honest users generate fresh nonces.)*) |
97 Goal "[| Crypt (pubK B) {|Nonce NA, Agent A|} : parts (spies s); \ |
108 Goal |
98 \ Nonce NA ~: analz (spies s); s : reachable Nprg |] \ |
109 "Nprg \ |
99 \ ==> Crypt (pubK C) {|NA', Nonce NA|} ~: parts (spies s)"; |
110 \ : Always {s. Nonce NA ~: analz (spies s) --> \ |
100 by (etac rev_mp 1); |
111 \ Crypt (pubK B) {|Nonce NA, Agent A|} : parts (spies s) --> \ |
101 by (etac rev_mp 1); |
112 \ Crypt (pubK C) {|NA', Nonce NA|} ~: parts (spies s)}"; |
102 by (parts_induct_tac 1); |
113 by (ns_induct_tac 1); |
103 by (ALLGOALS Blast_tac); |
114 by (ALLGOALS Blast_tac); |
104 qed "no_nonce_NS1_NS2"; |
115 qed "no_nonce_NS1_NS2"; |
105 |
116 |
106 (*Adding it to the claset slows down proofs...*) |
117 (*Adding it to the claset slows down proofs...*) |
107 val nonce_NS1_NS2_E = no_nonce_NS1_NS2 RSN (2, rev_notE); |
118 val nonce_NS1_NS2_E = impOfAlways no_nonce_NS1_NS2 RSN (2, rev_notE); |
108 |
119 |
109 |
120 |
110 (*Unicity for NS1: nonce NA identifies agents A and B*) |
121 (*Unicity for NS1: nonce NA identifies agents A and B*) |
111 Goal "[| Nonce NA ~: analz (spies s); s : reachable Nprg |] \ |
122 Goal |
112 \ ==> EX A' B'. ALL A B. \ |
123 "Nprg \ |
113 \ Crypt (pubK B) {|Nonce NA, Agent A|} : parts (spies s) --> \ |
124 \ : Always {s. Nonce NA ~: analz (spies s) --> \ |
114 \ A=A' & B=B'"; |
125 \ (EX A' B'. ALL A B. \ |
115 by (etac rev_mp 1); |
126 \ Crypt (pubK B) {|Nonce NA, Agent A|} : parts (spies s) --> \ |
116 by (parts_induct_tac 1); |
127 \ A=A' & B=B')}"; |
|
128 by (ns_induct_tac 1); |
117 by (ALLGOALS (simp_tac (simpset() addsimps [all_conj_distrib]))); |
129 by (ALLGOALS (simp_tac (simpset() addsimps [all_conj_distrib]))); |
118 (*NS1*) |
130 (*NS1*) |
119 by (expand_case_tac "NA = ?y" 2 THEN Blast_tac 2); |
131 by (expand_case_tac "NA = ?y" 2 THEN Blast_tac 2); |
120 (*Fake*) |
132 (*Fake*) |
121 by (Blast_tac 1); |
133 by (Blast_tac 1); |
124 Goal "[| Crypt(pubK B) {|Nonce NA, Agent A|} : parts(spies s); \ |
136 Goal "[| Crypt(pubK B) {|Nonce NA, Agent A|} : parts(spies s); \ |
125 \ Crypt(pubK B') {|Nonce NA, Agent A'|} : parts(spies s); \ |
137 \ Crypt(pubK B') {|Nonce NA, Agent A'|} : parts(spies s); \ |
126 \ Nonce NA ~: analz (spies s); \ |
138 \ Nonce NA ~: analz (spies s); \ |
127 \ s : reachable Nprg |] \ |
139 \ s : reachable Nprg |] \ |
128 \ ==> A=A' & B=B'"; |
140 \ ==> A=A' & B=B'"; |
129 by (prove_unique_tac lemma 1); |
141 by (prove_unique_tac (impOfAlways lemma) 1); |
130 qed "unique_NA"; |
142 qed "unique_NA"; |
131 |
143 |
132 |
144 |
133 (*Tactic for proving secrecy theorems*) |
|
134 val analz_induct_tac = |
|
135 (SELECT_GOAL o EVERY) |
|
136 [etac reachable.induct 1, |
|
137 Force_tac 1, |
|
138 Full_simp_tac 1, |
|
139 safe_tac (claset() delrules [impI,impCE]), |
|
140 ALLGOALS Asm_simp_tac]; |
|
141 |
|
142 |
|
143 |
|
144 (*Secrecy: Spy does not see the nonce sent in msg NS1 if A and B are secure*) |
145 (*Secrecy: Spy does not see the nonce sent in msg NS1 if A and B are secure*) |
145 Goal "[| Says A B (Crypt(pubK B) {|Nonce NA, Agent A|}) : set s; \ |
146 Goal "[| A ~: bad; B ~: bad |] \ |
146 \ A ~: bad; B ~: bad; s : reachable Nprg |] \ |
147 \ ==> Nprg : Always \ |
147 \ ==> Nonce NA ~: analz (spies s)"; |
148 \ {s. Says A B (Crypt(pubK B) {|Nonce NA, Agent A|}) : set s \ |
148 by (etac rev_mp 1); |
149 \ --> Nonce NA ~: analz (spies s)}"; |
149 by (analz_induct_tac 1); |
150 by (ns_induct_tac 1); |
150 (*NS3*) |
151 (*NS3*) |
151 by (blast_tac (claset() addEs [nonce_NS1_NS2_E]) 4); |
152 by (blast_tac (claset() addEs [nonce_NS1_NS2_E]) 4); |
152 (*NS2*) |
153 (*NS2*) |
153 by (blast_tac (claset() addDs [unique_NA]) 3); |
154 by (blast_tac (claset() addDs [unique_NA]) 3); |
154 (*NS1*) |
155 (*NS1*) |
158 qed "Spy_not_see_NA"; |
159 qed "Spy_not_see_NA"; |
159 |
160 |
160 |
161 |
161 (*Authentication for A: if she receives message 2 and has used NA |
162 (*Authentication for A: if she receives message 2 and has used NA |
162 to start a run, then B has sent message 2.*) |
163 to start a run, then B has sent message 2.*) |
163 Goal "[| Says A B (Crypt(pubK B) {|Nonce NA, Agent A|}) : set s; \ |
164 val prems = |
164 \ Says B' A (Crypt(pubK A) {|Nonce NA, Nonce NB|}): set s; \ |
165 goal thy "[| A ~: bad; B ~: bad |] \ |
165 \ A ~: bad; B ~: bad; s : reachable Nprg |] \ |
166 \ ==> Nprg : Always \ |
166 \ ==> Says B A (Crypt(pubK A) {|Nonce NA, Nonce NB|}): set s"; |
167 \ {s. Says A B (Crypt(pubK B) {|Nonce NA, Agent A|}) : set s & \ |
167 by (etac rev_mp 1); |
168 \ Crypt(pubK A) {|Nonce NA, Nonce NB|} : parts (knows Spy s) \ |
168 (*prepare induction over Crypt (pubK A) {|NA,NB|} : parts H*) |
169 \ --> Says B A (Crypt(pubK A) {|Nonce NA, Nonce NB|}): set s}"; |
169 by (etac (Says_imp_spies RS parts.Inj RS rev_mp) 1); |
170 (*insert an invariant for use in some of the subgoals*) |
170 by (parts_induct_tac 1); |
171 by (cut_facts_tac ([prems MRS Spy_not_see_NA] @ prems) 1); |
|
172 by (ns_induct_tac 1); |
171 by (ALLGOALS Clarify_tac); |
173 by (ALLGOALS Clarify_tac); |
172 (*NS2*) |
174 (*NS2*) |
173 by (blast_tac (claset() addDs [Spy_not_see_NA, unique_NA]) 3); |
175 by (blast_tac (claset() addDs [unique_NA]) 3); |
174 (*NS1*) |
176 (*NS1*) |
175 by (Blast_tac 2); |
177 by (Blast_tac 2); |
176 (*Fake*) |
178 (*Fake*) |
177 by (blast_tac (claset() addDs [Spy_not_see_NA]) 1); |
179 by (Blast_tac 1); |
178 qed "A_trusts_NS2"; |
180 qed "A_trusts_NS2"; |
179 |
181 |
180 |
182 |
181 (*If the encrypted message appears then it originated with Alice in NS1*) |
183 (*If the encrypted message appears then it originated with Alice in NS1*) |
182 Goal "[| Crypt (pubK B) {|Nonce NA, Agent A|} : parts (spies s); \ |
184 Goal "Nprg : Always \ |
183 \ Nonce NA ~: analz (spies s); \ |
185 \ {s. Nonce NA ~: analz (spies s) --> \ |
184 \ s : reachable Nprg |] \ |
186 \ Crypt (pubK B) {|Nonce NA, Agent A|} : parts (spies s) \ |
185 \ ==> Says A B (Crypt (pubK B) {|Nonce NA, Agent A|}) : set s"; |
187 \ --> Says A B (Crypt (pubK B) {|Nonce NA, Agent A|}) : set s}"; |
186 by (etac rev_mp 1); |
188 by (ns_induct_tac 1); |
187 by (etac rev_mp 1); |
|
188 by (parts_induct_tac 1); |
|
189 by (Blast_tac 1); |
189 by (Blast_tac 1); |
190 qed "B_trusts_NS1"; |
190 qed "B_trusts_NS1"; |
191 |
191 |
192 |
192 |
193 |
193 |
194 (**** Authenticity properties obtained from NS2 ****) |
194 (**** Authenticity properties obtained from NS2 ****) |
195 |
195 |
196 (*Unicity for NS2: nonce NB identifies nonce NA and agent A |
196 (*Unicity for NS2: nonce NB identifies nonce NA and agent A |
197 [proof closely follows that for unique_NA] *) |
197 [proof closely follows that for unique_NA] *) |
198 Goal "[| Nonce NB ~: analz (spies s); s : reachable Nprg |] \ |
198 Goal |
199 \ ==> EX A' NA'. ALL A NA. \ |
199 "Nprg \ |
200 \ Crypt (pubK A) {|Nonce NA, Nonce NB|} : parts (spies s) \ |
200 \ : Always {s. Nonce NB ~: analz (spies s) --> \ |
201 \ --> A=A' & NA=NA'"; |
201 \ (EX A' NA'. ALL A NA. \ |
202 by (etac rev_mp 1); |
202 \ Crypt (pubK A) {|Nonce NA, Nonce NB|} : parts (spies s) \ |
203 by (parts_induct_tac 1); |
203 \ --> A=A' & NA=NA')}"; |
|
204 by (ns_induct_tac 1); |
204 by (ALLGOALS (asm_simp_tac (simpset() addsimps [all_conj_distrib]))); |
205 by (ALLGOALS (asm_simp_tac (simpset() addsimps [all_conj_distrib]))); |
205 (*NS2*) |
206 (*NS2*) |
206 by (expand_case_tac "NB = ?y" 2 THEN Blast_tac 2); |
207 by (expand_case_tac "NB = ?y" 2 THEN Blast_tac 2); |
207 (*Fake*) |
208 (*Fake*) |
208 by (Blast_tac 1); |
209 by (Blast_tac 1); |
211 Goal "[| Crypt(pubK A) {|Nonce NA, Nonce NB|} : parts(spies s); \ |
212 Goal "[| Crypt(pubK A) {|Nonce NA, Nonce NB|} : parts(spies s); \ |
212 \ Crypt(pubK A'){|Nonce NA', Nonce NB|} : parts(spies s); \ |
213 \ Crypt(pubK A'){|Nonce NA', Nonce NB|} : parts(spies s); \ |
213 \ Nonce NB ~: analz (spies s); \ |
214 \ Nonce NB ~: analz (spies s); \ |
214 \ s : reachable Nprg |] \ |
215 \ s : reachable Nprg |] \ |
215 \ ==> A=A' & NA=NA'"; |
216 \ ==> A=A' & NA=NA'"; |
216 by (prove_unique_tac lemma 1); |
217 by (prove_unique_tac (impOfAlways lemma) 1); |
217 qed "unique_NB"; |
218 qed "unique_NB"; |
218 |
219 |
219 |
220 |
220 (*NB remains secret PROVIDED Alice never responds with round 3*) |
221 (*NB remains secret PROVIDED Alice never responds with round 3*) |
221 Goal "[| Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s; \ |
222 Goal "[| A ~: bad; B ~: bad |] \ |
222 \ ALL C. Says A C (Crypt (pubK C) (Nonce NB)) ~: set s; \ |
223 \ ==> Nprg : Always \ |
223 \ A ~: bad; B ~: bad; s : reachable Nprg |] \ |
224 \ {s. Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s & \ |
224 \ ==> Nonce NB ~: analz (spies s)"; |
225 \ (ALL C. Says A C (Crypt (pubK C) (Nonce NB)) ~: set s) \ |
225 by (etac rev_mp 1); |
226 \ --> Nonce NB ~: analz (spies s)}"; |
226 by (etac rev_mp 1); |
227 by (ns_induct_tac 1); |
227 by (analz_induct_tac 1); |
|
228 by (ALLGOALS (asm_simp_tac (simpset() addsimps [all_conj_distrib]))); |
228 by (ALLGOALS (asm_simp_tac (simpset() addsimps [all_conj_distrib]))); |
229 by (ALLGOALS Clarify_tac); |
229 by (ALLGOALS Clarify_tac); |
230 (*NS3: because NB determines A*) |
230 (*NS3: because NB determines A*) |
231 by (blast_tac (claset() addDs [unique_NB]) 4); |
231 by (blast_tac (claset() addDs [unique_NB]) 4); |
232 (*NS2: by freshness and unicity of NB*) |
232 (*NS2: by freshness and unicity of NB*) |
239 |
239 |
240 |
240 |
241 |
241 |
242 (*Authentication for B: if he receives message 3 and has used NB |
242 (*Authentication for B: if he receives message 3 and has used NB |
243 in message 2, then A has sent message 3--to somebody....*) |
243 in message 2, then A has sent message 3--to somebody....*) |
244 Goal "[| Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s; \ |
244 val prems = |
245 \ Says A' B (Crypt (pubK B) (Nonce NB)): set s; \ |
245 goal thy "[| A ~: bad; B ~: bad |] \ |
246 \ A ~: bad; B ~: bad; s : reachable Nprg |] \ |
246 \ ==> Nprg : Always \ |
247 \ ==> EX C. Says A C (Crypt (pubK C) (Nonce NB)) : set s"; |
247 \ {s. Crypt (pubK B) (Nonce NB) : parts (spies s) & \ |
248 by (etac rev_mp 1); |
248 \ Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s \ |
249 (*prepare induction over Crypt (pubK B) NB : parts H*) |
249 \ --> (EX C. Says A C (Crypt (pubK C) (Nonce NB)) : set s)}"; |
250 by (etac (Says_imp_spies RS parts.Inj RS rev_mp) 1); |
250 (*insert an invariant for use in some of the subgoals*) |
251 by (parts_induct_tac 1); |
251 by (cut_facts_tac ([prems MRS Spy_not_see_NB] @ prems) 1); |
|
252 by (ns_induct_tac 1); |
252 by (ALLGOALS (asm_simp_tac (simpset() addsimps [ex_disj_distrib]))); |
253 by (ALLGOALS (asm_simp_tac (simpset() addsimps [ex_disj_distrib]))); |
253 by (ALLGOALS Clarify_tac); |
254 by (ALLGOALS Clarify_tac); |
254 (*NS3: because NB determines A (this use of unique_NB is more robust) *) |
255 (*NS3: because NB determines A (this use of unique_NB is more robust) *) |
255 by (blast_tac (claset() addDs [Spy_not_see_NB] |
256 by (blast_tac (claset() addIs [unique_NB RS conjunct1]) 3); |
256 addIs [unique_NB RS conjunct1]) 3); |
|
257 (*NS1: by freshness*) |
257 (*NS1: by freshness*) |
258 by (Blast_tac 2); |
258 by (Blast_tac 2); |
259 (*Fake*) |
259 (*Fake*) |
260 by (blast_tac (claset() addDs [Spy_not_see_NB]) 1); |
260 by (Blast_tac 1); |
261 qed "B_trusts_NS3"; |
261 qed "B_trusts_NS3"; |
262 |
262 |
263 |
263 |
264 (*Can we strengthen the secrecy theorem? NO*) |
264 (*Can we strengthen the secrecy theorem? NO*) |
265 Goal "[| A ~: bad; B ~: bad; s : reachable Nprg |] \ |
265 Goal "[| A ~: bad; B ~: bad |] \ |
266 \ ==> Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s \ |
266 \ ==> Nprg : Always \ |
267 \ --> Nonce NB ~: analz (spies s)"; |
267 \ {s. Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s \ |
268 by (analz_induct_tac 1); |
268 \ --> Nonce NB ~: analz (spies s)}"; |
|
269 by (ns_induct_tac 1); |
269 by (ALLGOALS Clarify_tac); |
270 by (ALLGOALS Clarify_tac); |
270 (*NS2: by freshness and unicity of NB*) |
271 (*NS2: by freshness and unicity of NB*) |
271 by (blast_tac (claset() addEs [nonce_NS1_NS2_E]) 3); |
272 by (blast_tac (claset() addEs [nonce_NS1_NS2_E]) 3); |
272 (*NS1: by freshness*) |
273 (*NS1: by freshness*) |
273 by (Blast_tac 2); |
274 by (Blast_tac 2); |
279 by Auto_tac; |
280 by Auto_tac; |
280 by (rename_tac "s B' C" 1); |
281 by (rename_tac "s B' C" 1); |
281 |
282 |
282 (* |
283 (* |
283 THIS IS THE ATTACK! |
284 THIS IS THE ATTACK! |
284 Level 8 |
285 [| A ~: bad; B ~: bad |] |
285 !!s. [| A ~: bad; B ~: bad; s : reachable Nprg |] |
286 ==> Nprg |
286 ==> Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s --> |
287 : Always |
287 Nonce NB ~: analz (spies s) |
288 {s. Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s --> |
|
289 Nonce NB ~: analz (knows Spy s)} |
288 1. !!s B' C. |
290 1. !!s B' C. |
289 [| A ~: bad; B ~: bad; s : reachable Nprg; |
291 [| A ~: bad; B ~: bad; s : reachable Nprg; |
290 Says A C (Crypt (pubK C) {|Nonce NA, Agent A|}) : set s; |
292 Says A C (Crypt (pubK C) {|Nonce NA, Agent A|}) : set s; |
291 Says B' A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s; C : bad; |
293 Says B' A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s; |
292 Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s; |
294 C : bad; Says B A (Crypt (pubK A) {|Nonce NA, Nonce NB|}) : set s; |
293 Nonce NB ~: analz (spies s) |] |
295 Nonce NB ~: analz (knows Spy s) |] |
294 ==> False |
296 ==> False |
295 *) |
297 *) |