




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















Department of Computer Science and Engineering
University of Notre Dame
Previously
we talked about:
unconstrained adversary
achieving perfect secrecy by means of one-time pad
using entropy to measure information leakage
In this lecture
we:
take a computational approach
break the bounds of information-theoretic analysis
learn about modern design of encryption algorithms
Fall 2009
Marina Blanton
Security of a cipher can often be defined in one of the following ways:
-
a scheme is
t, ε
-secure
if an adversary running for time at most
t has probability of most
ε in breaking the security of the scheme
e.g., we can build a
80
− 48
-secure scheme using keys of size
n
= 128
bits
assume we are given a very good cipher
brute force search gives us
ε
=
t/
2 n
what value of
t is feasible using today’s computing power?
( t, ε
-security does not imply security in general
Fall 2009
Marina Blanton
Security of a cipher can be defined in one of the following ways:
-
cipher is described using a security parameter
n
a scheme is secure if an
efficient adversary
has only
negligible
probability
in breaking its security
feasible adversary means
probabilistic polynomial time
(in
n ) employing
any strategy
honest parties must be polynomial time as well
negligible function
n ) is smaller than the inverse of any
polynomial
n c (for constant
c )
Fall 2009
Marina Blanton
poly
negl
poly
negl
We distinguish between
polynomial
(^) and
super-polynomial functions
(^) and
normally are not very concerned with the exact complexity
-
appropriately setting the security parameterany super-polynomial function can be made sufficiently large by
n
examples of functions:
We will use the following
closure properties
let
1
and
2
be two arbitrary polynomial-time functions
function
3 ( n ) =
1 ( n ) +
2 ( n ) is polynomial
function
4 ( n ) =
1 ( n ) (^) ·
2 ( n ) is polynomial
Fall 2009
Marina Blanton
poly
negl
poly
negl
We also have
similar properties
for super-polynomial functions
let
1
and
2
be two arbitrary super-polynomial time
functions
function
3 ( n ) =
function
4 ( n ) =
A functionfunction:A negligible function is then the inverse of any super-polynomial
f
is negligible if for every polynomial
p ( · ) there exists
such that for all
n > N
f (^) ( n )
<
1
p ( n ) .
Fall 2009
Marina Blanton
By
polynomial-time algorithms
we mean functions running in
polynomial time
in the length of their inputs
i.e., on input
x , f (^) ( | x | ) =
f (^) ( n ) must be poly-time
since
n
=
x | = log
(^) x , if
f (^) ( n ) takes time
x , it is exponential
if we want
n ) and there are no other inputs, we write
f (^) (
n )
example:
the same applies to the complexity of all other algorithms
Fall 2009
Marina Blanton
By
probabilistic algorithms
(^) we mean functions that can make unbiased
coin tosses
-
choose a bit to be 0 with probability 1/2 and 1 with probability 1/
flip as many coins as necessary
How do we generate randomness in practice, without a coin?
Is output of function
random()
random?
Fall 2009
Marina Blanton
The above definition allows us to encrypt message of any length
In practice, there are two types of algorithms:
-
the key has a fixed size
certain sizeprior to encryption, the message is partitioned into blocks of
each block is encrypted and decrypted on its own
the message is processed as a stream
from a short fixed-length keypseudo-random generator is used to produce a long key stream
Fall 2009
Marina Blanton
Correctness
requirement is the same as before
Definition of
security
now differs
ciphertextwe first model a very weak adversary that observes only one
indistinguishability experimentrecall that we model security using eavesdropping
Aeav , E
there are three differences in computational setting:
Fall 2009
Marina Blanton
How do we meet this definition?
-
idea: substitute randomness with pseudorandomness
What is pseudorandomness?
-
it refers to a distribution of strings rather than a single string
whether it was sampled using a distributiongiven a string, a polynomial-time adversary shouldn’t be able to tell
of
-bit
pseudorandom strings or uniformly at random
Pseudorandom strings are produced using a
pseudorandom generators
a PRG takes a fixed-length key, or seed, and produces a longer string
Fall 2009
Marina Blanton
Let
be a polynomial function and let
be a deterministic algorithm
that on input
s ∈ {
n
outputs a string of length
n )
is a
pseudorandom generator
if the following is true:
n , ℓ ( n )
n
, there exists a
negligible function
such that
r ) = 1]
[ D ( G ( s
n )
where
r is chosen at random from
ℓ ( n ) and
s is chosen at
random from
n
Fall 2009
Marina Blanton
Private-key encryption scheme
for messages from
ℓ
let PRG
have expansion factor
(i.e.,
| G ( s ) | = ℓ ( |
s | ) )
: on input
n , randomly choose key
k
← {
n
: on input key
k
∈ {
n
and message
m
ℓ ( n ) , output
ciphertext
c :=
k ) ⊕
(^) m
: on input key
k
∈ {
n
and ciphertext
c ∈ {
} ℓ ( n ) ,
output message
m = G ( k )
(^) c
Theorem:
The above scheme has indistinguishable encryptions in the
presence of an eavesdropper, assuming that
is a PRG
Fall 2009
Marina Blanton
Reductions
are commonly used to prove that a problem is hard
suppose problem
(^) is known or believed to belong to a class of
“hard” problems
we want to prove that
is also “hard” to solve
we construct an “efficient” algorithm to use a solution to problem
to solve problem
this algorithm is called
(^) reduction
this implies that
is “at least as hard” as
and must be within the
same class of hard problems
example:
Fall 2009
Marina Blanton