cpsa-3.6.4: tst/role_uniq.scm
(herald "Role Unique Origination")
(defprotocol blanchet basic
(defrole init
(vars (a b akey) (s skey) (d data))
(trace
(send (enc (enc s (invk a)) b))
(recv (enc d s)))
(uniq-orig s))
(defrole resp
(vars (a b akey) (s skey) (d data))
(trace
(recv (enc (enc s (invk a)) b))
(send (enc d s))))
(comment "Blanchet's protocol using unnamed asymmetric keys"))
(defskeleton blanchet
(vars (a b akey) (s skey) (d data))
(defstrand init 2 (a a) (b b) (s s) (d d))
(non-orig (invk b))
(comment "Analyze from the initiator's perspective"))
(defskeleton blanchet
(vars (a b akey) (s skey) (d data))
(defstrand resp 2 (a a) (b b) (s s) (d d))
(non-orig (invk a) (invk b))
(comment "Analyze from the responder's perspective"))
(defprotocol blanchet basic
(defrole init
(vars (a b akey) (s skey) (d data))
(trace
(send (enc (enc s (invk a)) b))
(recv (enc d s))))
(defrole resp
(vars (a b akey) (s skey) (d data))
(trace
(recv (enc (enc s (invk a)) b))
(send (enc d s))))
(defrule role-uniq
(forall ((z strd) (s skey))
(implies (p "init" "s" z s)
(uniq s))))
(comment "Blanchet's protocol using unnamed asymmetric keys"))
(defskeleton blanchet
(vars (a b akey) (s skey) (d data))
(defstrand init 2 (a a) (b b) (s s) (d d))
(non-orig (invk b))
(comment "Analyze from the initiator's perspective"))
(defskeleton blanchet
(vars (a b akey) (s skey) (d data))
(defstrand resp 2 (a a) (b b) (s s) (d d))
(non-orig (invk a) (invk b))
(comment "Analyze from the responder's perspective"))