Documentation

Cslib.Crypto.Protocols.PerfectSecrecy.Internal.OneTimePad

One-Time Pad: Internal proofs #

The OTP ciphertext distribution is uniform regardless of message.

@[implicit_reducible]
Equations

XOR by a fixed mask is self-inverse on BitVec: c = k ^^^ m ↔ c ^^^ m = k.

The ciphertext distribution of the OTP is uniform, regardless of the message.