Cryptography I, Week 1: Stream Ciphers

来源:互联网 发布:淘宝买到质量问题 编辑:程序博客网 时间:2024/06/05 20:41

这里都是记录或paraphrase couresera 上的课程 Cryptography I

  • 1 Information theoretic security and the one time pad
    • one time pad secure cipher
    • Perfect secrecy
    • OTP has perfect secrecy
  • 2 Stream ciphers and pseudo random generators
    • Stream ciphers making OTP practical
    • PRG must be unpredictable
    • Negligible and non-negligible

(1). Information theoretic security and the one time pad

Ciphers definition:

a cipher defined over (K,M,C) is a pair of “efficient”algorithms (E,D) where
E:K×MC
D:K×CM
s.t mM,kK,D(K,E(K,m))=m

the last equation is called consistency equation and every cipher has to satisfy it in order to be a cipher.

E is often randomized when encrypting messages, E is gonna random bits for itself, and use those random bits to actually encrypt the message.
D is always deterministic


one time pad ( secure cipher )

M=C=K={0,1}k
所有的数据都是 bit sequencep, length of K is as long as the text

这里写图片描述

The figure above shows that the one-time pad is in fact a cipher.

It is difficult to use in practise since it is as long as the message


Perfect secrecy

**Information Theoretic Security ( Shannno 1949 )
Basic idea: CT should reveal no “info” about PT

** definition

k is uniform in K.
The meaning of this definition is that if a attacker get the cypher text c, then he has no idea whether the cypher text come from M0 or M1 because of the same probability.


OTP has perfect secrecy

(OTP: one-time pad)

it is because, for given c and m, there is only one k such that E(m, k)=c. So it has perfect secrecy. p


Shannon proved:
Thm: perfectsecrecy|K||M|
So OTP is the optimal one that has perfect secrecy


(2). Stream ciphers and pseudo random generators

Stream ciphers: making OTP practical

这里写图片描述

decrease the size of key by using pseudo random generator. PRG is a function that maps

G:{0,1}s{0,1}n,ns

{0,1}s is called seed space.

Stream ciphers does not have perfect secrecy since the length of key is less than length of message.

PRG must be unpredictable

这里写图片描述

这里写图片描述

predictable means we can predict the rest of string if we know the first i letters.

The second figure is the definition. Known the first i bits, the probability of predicting the i+1 is more than 1/2 .

Negligible and non-negligible

Have not understood.

0 0