Docsity

Hardcore Bits in Cryptography: Definition and Examples, Study notes of Cryptography and System Security

Toggle sidebar
bg1
CS 120: Introduction to Cryptography
Salil Vadhan and Alon Rosen Oct. 19, 2006
Lecture Notes 10:
Hardcore Bits
Recommended Reading.
•
Katz-Lindell 6.1.3, 6.3
1 Hardcore Bits
Motivation
: If
f
is a OWF, it is hard to determine
x
from
f(x)
, but is it also hard to compute a
particular bit of
x
from
f(x)
, say the rst bit of
x
? Random guessing gives a probability of success
of
1
2
but some bits might be even easier to guess. A few examples:
A one-way function can reveal a large part of its input: is there a fraction of the bits of the
input which is always well-hidden? (i.e. any polynomial-time algorithm cannot have a nonnegligible
advantage over random guessing when computing those bits from the output of the function) The
answer is no, because we can construct one-way functions such that each bit of
x
can be obtained
from
f(x)
with high probability. Thus, we instead look for some bit of information which is hard
to compute.
Denition 1
b:{0,1}∗→ {0,1}
is a
hardcore bit
(or
hardcore predicate
) for one-way function
f
if
•b
is polynomial-time computable.
•
For every PPT
A
, there is a negligible function
ε
such that
Pr [A(f(X)) = b(X)] ≤1
2+ε(n)∀n,
where the probability is over
X
R
← {0,1}n
and the coin tosses of
A
.
Denition 2
{bkey :Dkey → {0,1}}key∈K
is a
collection of hardcore bits
for the collection of one-
way functions
F={fkey :Dkey →Rkey}
if
•
Given
key ∈ K
and
x∈Dkey
,
bkey(x)
can be computed in polynomial time.
1
pf3
pf4

Partial preview of the text

Download Hardcore Bits in Cryptography: Definition and Examples and more Study notes Cryptography and System Security in PDF only on Docsity!

CS 120: Introduction to Cryptography

Salil Vadhan and Alon Rosen Oct. 19, 2006

Lecture Notes 10:

Hardcore Bits

Recommended Reading.

  • Katz-Lindell 6.1.3, 6.

1 Hardcore Bits

Motivation: If f is a OWF, it is hard to determine x from f (x), but is it also hard to compute a particular bit of x from f (x), say the rst bit of x? Random guessing gives a probability of success of 12 but some bits might be even easier to guess. A few examples:

A one-way function can reveal a large part of its input: is there a fraction of the bits of the input which is always well-hidden? (i.e. any polynomial-time algorithm cannot have a nonnegligible advantage over random guessing when computing those bits from the output of the function) The answer is no, because we can construct one-way functions such that each bit of x can be obtained from f (x) with high probability. Thus, we instead look for some bit of information which is hard to compute.

Denition 1 b : { 0 , 1 }∗^ → { 0 , 1 } is a hardcore bit (or hardcore predicate) for one-way function f if

  • b is polynomial-time computable.
  • For every PPT A, there is a negligible function ε such that

Pr [A(f (X)) = b(X)] ≤

  • ε(n) ∀n,

where the probability is over X ← {R 0 , 1 }n^ and the coin tosses of A.

Denition 2 {bkey : Dkey → { 0 , 1 }}key∈K is a collection of hardcore bits for the collection of one- way functions F = {fkey : Dkey → Rkey} if

  • Given key ∈ K and x ∈ Dkey, bkey(x) can be computed in polynomial time.
  • For every PPT A, there is a negligible function ε such that

Pr [A(1n, K, fK (X)) = bK (X)] ≤

  • ε(n) ∀n,

where the probability is taken over K ←R G(1n), X ←R DK , and the coin tosses of A.

2 Examples

RSA functions • The least signicant bit is a hardcore bit for RSA:

lsbN,e : Z∗ N 7 → { 0 , 1 }

Given N, e, xe^ mod N , we cannot compute lsbN,e(x) with a nonnegligible advantage over random guessing.

  • Dene halfN (x) by halfN (x) = 0 if 0 ≤ x < N/ 2 and 1 otherwise (halfN (x) is like the most signicant bit of x). halfN (x) is a hardcore bit for RSA.

Rabin's functions • The least signicant bit is a hardcore bit for Rabin's functions:

lsbN : Z∗ N 7 → { 0 , 1 }

Given N, x^2 mod N , we cannot compute lsbN (x) with a nonnegligible advantage over random guessing.

  • halfN (x) is a hardcore bit for Rabin's functions.

Modular Exponentiation/Discrete Log halfp− 1 (x) is a hardcore bit for Modular Exponentia- tion.

3 GoldreichLevin hardcore bit

Does every one-way function have a hardcore bit? The following theorem proves that from any arbitrary OWF, we can construct a OWF with a hardcore bit by taking the XOR of a random subset of bits. For x, r ∈ { 0 , 1 }n, dene 〈x, r〉 =

i xiri^ mod 2 =^ ⊕i|ri=1xi.

Theorem 3 (GoldreichLevin hardcore bit) Let f be any one-way function, and dene f ′(x, r) = (f (x), r) for ||x|| = ||r||. Then 〈x, r〉 is a hardcore bit for f ′.

This theorem is most interesting when f is one-to-one. Note that if f is one-to-one, then so is f ′.

Proof ideas:

Reducibility argument: Suppose that there exists a PPT A that predicts 〈x, r〉 from (f (x), r) with nonnegligible advantage over random guessing. We construct a PPT B that uses A to invert f with nonnegligible probability.

Easy case: Assume that A(f (x), r) computes the hardcore bit 〈x, r〉 with probability 1.

Observation 1: Let e(i)^ = (0 · · · 010 · · · 0) (1 in the i'th position and 0 elsewhere). We observe that 〈x, e(i)〉 = xi. We dene B(y) as follows:

3 /4+ε/ 2 (probability just over R and the coin tosses of A). Call these good x. For each good x and each i ∈ { 1 ,... , n}, Pr [A(f (x), R) ⊕ A(f (x), R ⊕ ei) 6 = xi] ≤ 2 ·(1−(3/4+ε/2)) = 1/ 2 −ε. Thus, the above algorithm inverts f with high probability on f (x) for each good x (for a total success probability of ≈ ε/ 2 ).

General case (A computes hardcore bit with probability 1 /2 + ε) requires additional ideas.

Theorem 4 (Goldreich-Levin hardcore bit for collections) Let F = {fi : Domi → Rngi} be any collection of one-way function, and dene gi,r(x) = fi(x), bi,r(x) = 〈x, r〉. Then {bi,r : Domi → Rngi} is a collection of hardcore bits for the collection of one-way functions {gi,r : Domi → Rngi}.