Docsity

Modern Cryptography - Lecture Slides | INFO, Study notes of Information Technology

Partial preview of the text

Download Modern Cryptography - Lecture Slides | INFO and more Study notes Information Technology in PDF only on Docsity!

Modern Cryptography

Modern Cryptography

Concepts

Cryptographic Security

 Modern cryptography is based on exploiting a gap between  Efficient algorithms for Alice and Bob to establish a secure communication channel  Computationally infeasible for the adversary to compromise that channel

Polynomial and Exponential Functions

 A simple and informal description  A polynomial function is a function whose variable has constant exponents  Examples: f ( x )= x+ 1 f ( x )= x^2 f ( x )= x^3  An exponential function has a variable as exponent  Examples: f ( x )=2 x^ f ( x )=10 x

 An exponential function changes much faster than a polynomial function

An “Easy” Problem

 An easy problem: (solvable in polynomial steps)  Given a sequence of integers S =[ a 1 , a 2 , …, an ], find out if an integer a is in S  How many steps are needed for a brute-force search?  A brute-force search takes n/2 steps on average  Better approaches need about log(n) steps

A “Easy” Problem (cont’d)

S= [15, 13, 9, 16, 12, 19, 6, 8, 25] Problem size n =

8

S= [6, 8, 9, 12, 13, 15, 16, 19, 25] Problem size n =

8

A “Hard” Problem (cont’d)

 For example, S= [15, 13, 9, 16, 12, 19, 6, 8, 25]  Given a number 39, find out the numbers in S whose sum equals to 39  Brute-force method takes 29-1^ steps on average

Modern Cryptography

Cryptographic Hash Function and Message Authentication Code

One-way Function (cont’d)

One-way function

A Candidate One-way Function

 A sequence of integers S =[ a 1 , a 2 , …, an ]  An input vector x= [ v 1 , v 2 , …, vn ], where vi= 0 or 1  f (x)= a 1 v 1 + a 2 v 2 +…+ an vn is one-way in general  This is the famous Knapsack problem (homework?)

One-way Hash Functions

 Arbitrary length input => fixed length output  h = H ( M ), h has length m  Given M , easy to compute hPreimage resistance : given h , hard to compute M

 2 nd-preimage resistance: Given M , hard to find M’  M s.t.

H(M) = H(M’)

 Examples: SHA, (MD4, MD5)=> recently cracked by cryptographers

One-way Hash Function

One-way function One-way function

Message Authentication Code (MAC)

Alice (^) Bob

M

t=?=F ( K, M ) (^) t = F ( K , M ) t

Message Authentication Code (MAC)

 A message authentication code scheme is a triple  G , T , V  of efficiently computable functions  G outputs a secret key KT takes a key K and “message” M as input, and outputs a “tag” t  TK ( M )  V takes M , tag t and key K as input, and outputs a binary outcome b  VK ( M , t ) where b= 1 (“valid”) or 0 (“invalid”)  Without knowing K , it is “hard” (computationally infeasible) to generate t for M s.t. VK ( M , t )=