













































































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!














































































Concepts
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
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: (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
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
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
Cryptographic Hash Function and Message Authentication Code
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?)
Arbitrary length input => fixed length output h = H ( M ), h has length m Given M , easy to compute h Preimage resistance : given h , hard to compute M
Examples: SHA, (MD4, MD5)=> recently cracked by cryptographers
One-way function One-way function
Alice (^) Bob
M
t=?=F ( K, M ) (^) t = F ( K , M ) t
A message authentication code scheme is a triple G , T , V of efficiently computable functions G outputs a secret key K T 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 )=