Shannon ciphers and perfect security

Shannon ciphers and perfect security

Definition of a Shannon cipher

The basic mechanism for encrypting a message using a shared secret key is called a cipher (or encryption scheme). In this section, we introduce a slightly simplified notion of a cipher, which we call a Shannon cipher.
A Shannon cipher is a pair ε = ( E , D ) \varepsilon =(E,D) ε=(E,D) of functions.
• The function E (the encryption function) takes as input a key k and a message m (also called a plaintext), and produces as output a ciphertext c. That is,
c = E ( k , m ) c = E(k, m) c=E(k,m),
and we say that c is the encryption of m under k. • The function D (the ecryption function) takes as input a key k k k and a ciphertext c c c, and produces a message m m m. That is,
m = D ( k , c ) m = D(k, c) m=D(k,c),
and we say that m is the decryption of c under k k k.
• We require that decryption “undoes” encryption; that is, the cipher must satisfy the following correctness property: for all keys k and all messages m, we have
D ( k , E ( k , m ) ) = m D(k, E(k, m) ) = m D(k,E(k,m))=m.

To be slightly more formal, let us assume that K K K is the set of all keys (the key space), M M M is the set of all messages (the message space), and that C C C is the set of all ciphertexts (the ciphertext space). With this notation, we can write:
E : K × M → C E : K × M → C E:K×MC,
D : K × C → M D : K × C → M D:K×CM.
Also, we shall say that ε \varepsilon ε is defined over ( K , M , C ) (K,M, C) (K,M,C)

A one-time pad

A one-time pad is a Shannon cipher ε = E , D ) \varepsilon =E,D) ε=E,D), where the keys, messages, and ciphertexts are bit strings of the same length; that is, ε \varepsilon ε is defined over ( K , M , C ) (K,M,C) (K,M,C), where
K : = M : = C : ( 0 , 1 ) L K:=M:=C:(0,1)^L K:=M:=C:(0,1)L

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

王玄清

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值