
























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!

























Outline PRSG Secret splitting
Lecture 22
Michael J. Fischer Department of Computer ScienceYale University
April 12, 2010
Outline PRSG Secret splitting
(^1) Pseudorandom Sequence Generation Bit-Prediction
(^2) Secret Splitting Two-Part Secret Splitting Multi-Part Secret Splitting Shamir’s Secret Splitting Scheme
One important property of the uniform distribution U on bit-strings b 1 ,... , b` is that the individual bits are statistically independent from each other. This means that the probability that a particular bit bi = 1 is unaffected by the values of the other bits in the sequence. Thus, any algorithm that attempts to predict bi , even knowing other bits of the sequence, will be correct only 1/2 of the time. We now translate this property of unpredictability to pseudorandom sequences.
First-bit prediction seems rather uninteresting because pseudorandom bits are usually generated in order. However, we would like it to be difficult to predict the next bit given the bits that came before. Algorithm A is an -next-bit predictor for bit i if P[A(b 1 ,... , bi− 1 ) = bi ] ≥ 12 + where (b 1 ,... , bi ) = Gi (S). As before, S is uniformly distributed over S, G (S) is a random variable over the output strings of G , and Gi (S) is the corresponding random variable on the length-i prefixes of G (S).
Let A be an -next-bit predictor for G for some bit i. Here’s how to build a judge J that distinguishes G (S) from U with advantage . J, given a sample x drawn from either G (S) or from U, runs A(x) to produce ˆbi. If ˆbi = bi , then J outputs 1. Otherwise, J outputs 0.
For samples from G (S), the judge will output 1 with the same probability that A successfully predicts bit bi , which is at least 1 /2 + . For sequences drawn from U, the judge will output 1 with probability exactly 1/2. Hence, the judge distinguishes G (S) from U with advantage . It follows that no cryptographically strong PRSG can have an -next-bit predictor. In other words, no algorithm that attempts to predict the next bit can have more than a “small” advantage over chance.
To give some intuition into why such a fact might be true, we look at the special case of ` = 2, that is, of 2-bit sequences. The probability distribution G (S) can be described by four probabilities pu,v = P[b 1 = u ∧ b 2 = v ], where u, v ∈ { 0 , 1 }. Written in tabular form, we have b 2 b 1
0 p 0 , 0 p 0 , 1 1 p 1 , 0 p 1 , 1
We describe a deterministic algorithm A(v ) for predicting b 1 given b 2 = v. A(v ) predicts b 1 = 0 if p 0 ,v > p 1 ,v , and it predicts b 1 = 1 if p 0 ,v ≤ p 1 ,v. In other words, the algorithm chooses the value for b 1 that is most likely given that b 2 = v. Theorem If A is an -previous-bit predictor for b 1 , then A is an -next-bit predictor for either b 1 or b 2.
Case 2: a(0) 6 = a(1). The probability that A(v ) correctly predicts b 1 given b 2 = v is P[b 1 = a(v ) | b 2 = v ] = P[b^1 = P^ a[b( 2 v )=^ ∧ v^ b ]^2 =^ v^ ]= (^) P[pba 2 ( v=^ ),v v ] The overall probability that A(b 2 ) is correct for b 1 is the average of the conditional probabilities for v = 0 and v = 1, weighted by the probability that b 2 = v. Thus, P[A(b 2 ) is correct for b 1 ] = ∑ v ∈{ 0 , 1 }
P[b 1 = a(v ) | b 2 = v ] · P[b 2 = v ]
= ∑ v ∈{ 0 , 1 }
pa(v ),v = pa(0), 0 + pa(1), 1
Similarly, using A to predict b 2 given b 1 yields P[A(b 1 ) is correct for b 2 ] = ∑ v ∈{ 0 , 1 }
P[b 2 = a(u) | b 1 = u] · P[b 1 = u]
= ∑ v ∈{ 0 , 1 }
pu,a(u) = p 0 ,a(0) + p 1 ,a(1) We show that pa(0), 0 + pa(1), 1 = p 0 ,a(0) + p 1 ,a(1) when a(0) 6 = a(1). It follows that P[A(b 1 ) is correct for b 2 ] = P[A(b 2 ) is correct for b 1 ], so A is an -next-bit predictor for b 2.
We have just seen how to construct a next-bit predictor from a previous-bit predictor, and we’ve also seen how to construct a judge from a next-bit predictor. The most general bit-prediction problem is to predict the ith^ bit of the sequence given all other bits. An algorithm that can do this with advantage is said to be an -ith-bit predictor for G. It’s easy to transform an -next-bit predictor for bi into an -ith-bit predictor. It’s also easy to build a judge with advantage from an -ith-bit predictor. To close the loop, one can build an ′-next-bit predictor for some bit i and some ′^ given a judge with advantage .
We sketch how to build a next-bit predictor given a judge. The construction is based on interpolation between U and G (S). u 1 u 2 u 3... ui− 1 ui ui+1... ub 1 u 2 u 3... ui− 1 ui ui+1... u
...... b 1 b 2 b 3... bi− 1 ui ui+1... ub 1 b 2 b 3... bi− 1 bi ui+1... u ...... b 1 b 2 b 3... bi− 1 bi bi+1... bThe difference in the judge’s output between top and bottom sequence is ≥ . Therefore, for some i, the difference in judge’s output between sequence i − 1 and i must be at least ′^ = /. An ′-next bit predictor for bi is easily constructed.
Outline PRSG Secret splitting 2-part Multi-part Shamir secret splitting
There are many situations in which one wants to grant access to a resource only if a sufficiently large group of agents cooperate. For example, the office safe of a supermarket might require both the manager’s key and the armored car driver’s key in order to be opened. This protects the store against a dishonest manager or armored car driver, and it also prevents an armed robber from coercing the manager into opening the safe. A similar 2-key system is used for safe deposit boxes in banks.
Outline PRSG Secret splitting 2-part Multi-part Shamir secret splitting
We might like to achieve the same properties for cryptographic keys or other secrets. Let k be the key for a symmetric cryptosystem. One might wish to split k into two shares k 1 and k 2 so that by themselves, neither k 1 nor k 2 by itself reveals any information about k, but when suitably combined, k can be recovered. A simple way to do this is to choose k 1 uniformly at random and then let k 2 = k ⊕ k 1. Both k 1 and k 2 are uniformly distributed over the key space and hence give no information about k. However, combined with XOR, they reveal k, since k = k 1 ⊕ k 2.