Docsity

Computational Security & Symmetric Encryption: Indistinguishable Encryptions & Pseudorando, Study notes of Cryptography and System Security

Partial preview of the text

Download Computational Security & Symmetric Encryption: Indistinguishable Encryptions & Pseudorando and more Study notes Cryptography and System Security in PDF only on Docsity!

Cryptography and Data Security

CSE 40622/60622 Fall 2009

Lecture 4: Symmetric Encryption

Department of Computer Science and Engineering

University of Notre Dame

High-Level ViewHigh-Level View

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

Computational SecurityComputational Security

Security of a cipher can often be defined in one of the following ways:

-

  • exact numbers

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

Computational SecurityComputational Security

Security of a cipher can be defined in one of the following ways:

-

  • asymptotic approach

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

(PPT)

(in

n ) employing

any strategy

honest parties must be polynomial time as well

negligible function

negl

n ) is smaller than the inverse of any

polynomial

n c (for constant

c )

Fall 2009

Marina Blanton

More on

poly

n

and

negl

n

More on

poly

n

and

negl

n

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

poly

1

and

poly

2

be two arbitrary polynomial-time functions

function

poly

3 ( n ) =

poly

1 ( n ) +

poly

2 ( n ) is polynomial

function

poly

4 ( n ) =

poly

1 ( n ) (^) ·

poly

2 ( n ) is polynomial

Fall 2009

Marina Blanton

More on

poly

n

and

negl

n

More on

poly

n

and

negl

n

We also have

similar properties

for super-polynomial functions

let

spoly

1

and

spoly

2

be two arbitrary super-polynomial time

functions

function

spoly

3 ( n ) =

function

spoly

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

N

such that for all

n > N

f (^) ( n )

<

1

p ( n ) .

Fall 2009

Marina Blanton

String Length and Running TimeString Length and Running Time

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

poly

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

String Length and Running TimeString Length and Running Time

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

Symmetric EncryptionSymmetric Encryption

The above definition allows us to encrypt message of any length

In practice, there are two types of algorithms:

-

  • block ciphers

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

  • stream ciphers

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

Computationally-Secure EncryptionComputationally-Secure Encryption

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

PrivK

Aeav , E

there are three differences in computational setting:

Fall 2009

Marina Blanton

Towards Computationally-Secure EncryptionTowards Computationally-Secure Encryption

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

D

of

-bit

pseudorandom strings or uniformly at random

Pseudorandom strings are produced using a

pseudorandom generators

(PRG)

a PRG takes a fixed-length key, or seed, and produces a longer string

Fall 2009

Marina Blanton

Pseudorandom GeneratorPseudorandom Generator

Let

be a polynomial function and let

G

be a deterministic algorithm

that on input

s ∈ {

n

outputs a string of length

n )

G

is a

pseudorandom generator

if the following is true:

  1. (expansion) for any

n , ℓ ( n )

n

  1. (pseudorandomness) for all PPT distinguishers

D

, there exists a

negligible function

negl

such that

Pr

[

D

r ) = 1]

Pr

[ D ( G ( s

)) = 1]

negl

n )

where

r is chosen at random from

ℓ ( n ) and

s is chosen at

random from

n

Fall 2009

Marina Blanton

Secure Encryption SchemeSecure Encryption Scheme

Private-key encryption scheme

for messages from

M

ℓ

let PRG

G

have expansion factor

(i.e.,

| G ( s ) | = ℓ ( |

s | ) )

Gen

: on input

n , randomly choose key

k

← {

n

Enc

: on input key

k

∈ {

n

and message

m

ℓ ( n ) , output

ciphertext

c :=

G

k ) ⊕

(^) m

Dec

: 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

G

is a PRG

Fall 2009

Marina Blanton

Proof Technique: ReductionProof Technique: Reduction

Reductions

are commonly used to prove that a problem is hard

suppose problem

A

(^) is known or believed to belong to a class of

“hard” problems

we want to prove that

B

is also “hard” to solve

we construct an “efficient” algorithm to use a solution to problem

B

to solve problem

A

this algorithm is called

(^) reduction

this implies that

B

is “at least as hard” as

A

and must be within the

same class of hard problems

example:

Fall 2009

Marina Blanton