Documentation

Cslib.Crypto.Protocols.PerfectSecrecy.OneTimePad

One-Time Pad #

The one-time pad (Vernam cipher) over BitVec l ([KL20], Construction 2.9).

Main definitions #

Main results #

References #

The one-time pad over l-bit strings. Encryption and decryption are XOR ([KL20], Construction 2.9).

Equations
  • One or more equations did not get rendered due to their size.
Instances For

    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).