Documentation

Cslib.Crypto.Protocols.PerfectSecrecy.Defs

Perfect Secrecy: Definitions #

Core definitions for perfect secrecy following [KL20], Chapter 2.

Main definitions #

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.

Equations
Instances For
    noncomputable def Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.jointDist {M K C : Type u} (scheme : EncScheme M K C) (msgDist : PMF M) :
    PMF (M × C)

    Joint distribution of (M, C) given a message prior.

    Equations
    Instances For
      noncomputable def Cslib.Crypto.Protocols.PerfectSecrecy.EncScheme.marginalCiphertextDist {M K C : Type u} (scheme : EncScheme M K C) (msgDist : PMF M) :
      PMF C

      Marginal ciphertext distribution given a message prior.

      Equations
      Instances For
        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.

        Equations
        Instances For
          @[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

          An encryption scheme is perfectly secret if the posterior message distribution equals the prior for every ciphertext with positive probability ([KL20], Definition 2.3).

          Equations
          Instances For

            Ciphertext indistinguishability: the ciphertext distribution is the same for all messages ([KL20], Lemma 2.5).

            Equations
            Instances For