One-Time Pad #
The one-time pad (Vernam cipher) over BitVec l
([KL20], Construction 2.9).
Main definitions #
Cslib.Crypto.Protocols.PerfectSecrecy.otp: the one-time pad encryption scheme
Main results #
Cslib.Crypto.Protocols.PerfectSecrecy.otp_perfectlySecret: the one-time pad is perfectly secret ([KL20], Theorem 2.10)
References #
theorem
Cslib.Crypto.Protocols.PerfectSecrecy.otp_ciphertextDist_eq_uniform
(l : ℕ)
(m : BitVec l)
:
The ciphertext distribution of the OTP is uniform, regardless of the
message: masking with a uniform key is the permutation Equiv.xor of the
uniform distribution.
The one-time pad is perfectly secret ([KL20], Theorem 2.10).