








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This lecture is part of lecture series delivered by Raju Bharat at Biju Patnaik University of Technology, Rourkela for Computer Security course. Its main points are: Entropy, Uncertainty, Computationally, Secure, Ciphers, Compression, Message, Probability, Relevant
Typology: Slides
1 / 14
This page cannot be seen from the preview
Don't miss anything!









“ It is impossible to use different key for every message”
Unconditionally Secure Ciphers are not feasible to use for every day encryption requirements such as internet transaction
Not perfectly secure
We are interested in using single small key for multiple messages and for large message encryption
If a person always answers Y then X contains no information Uncertainty(X) ~ Entropy(X)~ H(X) = 0 In other case (if answer can be Y or N ) Uncertainty(X) ~ Entropy(X)~ H(X) = 1
Formally
Let X be a random variable which takes on a finite set of values xi, with 1 ≤ i ≤ n, and has probability distribution pi = p(X = xi). The entropy of X is defined to be
k
i
1
Entropy of answer a question Y/N in a random variable X
Case-I (A person always answers Y) p1=Probability answer = Y = 1 p2=Probability answer = N = 0
H(X) = - (p1og 2 (p1) – p2log 2 (p2)) = - (1x0 – 1 x 0 ) = 0
Case-II (A person always answers Y) p1=Probability answer = Y = 1/
p2=Probability answer = N = 1/ H(X) = - (p1og 2 (p1) – p2log 2 (p2)) = 1
N= 64 bits ε = 8/64 = 1/ 8 bits ε.N = 8 bits of information
Example
P = {a, b, c, d}, K = {k1, k2, k3} C = {1, 2, 3, 4},
Probability of a,b,c,d given by
p(P = a) = 0.25, p(P = b) = p(P = d) = 0.3 and p(P = c) = 0.15, p(K = k1) = p(K = k3) = 0.25 and p(K = k2) = 0.5, p(C = 1) = p(C = 2) = p(C = 3) = 0.2625 and p(C = 4) = 0.2125.
Relevant Entropies
H(P) ≈ 1.9527, H(K) ≈ 1.5, H(C) ≈ 1.9944.
What does this mean?
if X and Y are random variables then we define the joint probability distribution as ri,j = p(X = xi and Y = yj)
For 1 ≤ i ≤ n and 1 ≤ j ≤ m.the joint entropy is defined as
Joint entropy H(X, Y ) as the total amount of information contained in one observation of (x, y) ∈ X × Y.
H(X, Y ) ≤ H(X) + H(Y )
with equality if and only if X and Y are independent
ij
m
j
ij
n
i
H X Y r r
1
2 1
H(K, P,C) = H(P,K) + H(C|P,K) as H(X, Y ) = H(Y ) + H(X|Y )
= H(P,K) as H(C|P,K) = 0
= H(K) + H(P) as K and P are independent
and
H(K, P,C) = H(K,C) + H(P|K,C) as H(X, Y ) = H(Y ) + H(X|Y )
= H(K,C) as H(P|K,C) = 0.
Hence, we obtain
H(K,C) = H(K) + H(P).
and
H(K|C) = H(K,C) − H(C) = H(K) + H(P) − H(C).
H(P) ≈ 1.9527, H(K) ≈ 1.5, H(C) ≈ 1.9944.
Hence H(K|C) ≈ 1.9527 + 1.5 − 1.9944 ≈ 1.4583.