Perfect Secrecy: Definitions #
Core definitions for perfect secrecy following [KL20], Chapter 2.
Main definitions #
Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.ciphertextDist: ciphertext distribution for a given messageCslib.Crypto.Protocols.PerfectSecrecy.EncScheme.jointDist: joint (message, ciphertext) distribution given a message priorCslib.Crypto.Protocols.PerfectSecrecy.EncScheme.marginalCiphertextDist: marginal ciphertext distribution given a message priorCslib.Crypto.Protocols.PerfectSecrecy.EncScheme.posteriorMsgDist: posterior message distributionPr[M | C = c]as aPMFCslib.Crypto.Protocols.PerfectSecrecy.EncScheme.PerfectlySecret: perfect secrecy ([KL20], Definition 2.3)Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.CiphertextIndist: ciphertext indistinguishability ([KL20], Lemma 2.5)
noncomputable def Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.ciphertextDist {M K C : Type u} (scheme : EncScheme M K C) (m : M) :
PMF C
The distribution of Enc_K(m) when K ← Gen.
noncomputable def Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.posteriorMsgDist {M K C : Type u} (scheme : EncScheme M K C) (msgDist : PMF M) (c : C) (hc : c ∈ (scheme.marginalCiphertextDist msgDist).support) :
PMF M
The posterior message distribution Pr[M | C = c] as a probability
distribution, given a message prior and a ciphertext in the support of
the marginal distribution.
@[simp]
theorem Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.posteriorMsgDist_apply {M K C : Type u} (scheme : EncScheme M K C) (msgDist : PMF M) (c : C) (hc : c ∈ (scheme.marginalCiphertextDist msgDist).support) (m : M) :
(scheme.posteriorMsgDist msgDist c hc) m = (scheme.jointDist msgDist) (m, c) / (scheme.marginalCiphertextDist msgDist) c