Cipher

Cipher

Updated: December 1, 2020
Cryptography

A cipher is defined over the spaces of:

All Keys, K

All Messages, M

All Cipher texts, C

Cipher (defined as a triple, (K,M,C)) as a pair of algorithms (E,D) where E represents the encryption algorithm and D represents the decryption algorithm.

E:K×MC

and

D:K×CM

Such that:

mM,kK:D(k,E(k,m))=m

E is often randomized

D is always deterministic

A cipher (E,D) has perfect secrecy if:

m0,m1M(|m0|=|m1|)andcC Pr[E(k,m0)=c]=Pr[E(k,m1)=c]

where kK (k is a randomly distributed key from K)

In other words, if I was given a particular cipher text (encrypted message), I will have no idea which message originally created it since it could be any other message with equal probability.