One-time pad encryption scheme
Description:
- A private-key encryption scheme
- M={0,1}n,K={0,1}n
- The key, k, is required to be as long as the message
- The entire key used to mask the plain-text β βperfectly hidesβ the plain-text
Gen:
- Generates a key k=k1βk2β...knβ uniformly from K={0,1}n
Enc:
- Encnβ(m1βm2β...mnβ)=c1βc2β...cnβ, where ciβ=miβ+kiβmod2 (equivalentlyciβ=miββkiβ where β denotes XOR)
Dec:
- Deckβ(c1βc2β...cnβ)=m1βm2β...mnβ where miβ=ciββkiβmod2 (it is equivalent to miβ=ciββkiβ)