



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!




University of Illinois, Urbana Champaign CS/ECE 498AC3/4 Applied Cryptography
Instructor: Dakshita Khurana Scribe: Timur Javid Date: October 20, 2020
Or Composition, Pairings
Last lecture, we looked at range proofs, in which the prover tries to show that a value is within a certain range without revealing the value itself. We constructed a simple example of a range proof where the prover wants to show that the message sent using the ElGamal scheme is an encryption of a single bit. In this example, we have a protocol to show that the prover sends a Decisional Diffie-Hellman (DDH or DH) tuple if the encrypted bit b = 0 and a protocol to show that the message is a DH tuple if b = 1. However, proving the DH tuple ultimately reveals the value of the b to the verifier. Thus, we have to OR compose these two protocols in order to prove the range of b without revealing the true value of b. In this lecture, we construct a protocol for the OR composition that we started to look at in the last lecture. We also look at non-interactive zero-knowledge proofs in which we utilize a random oracle. In the second half of the lecture, we start looking at pairing based cryptography in which we utilize groups in a pairing and their properties in order to obtain a different type of hardness assumption known as the Co-CDH assumption for our cryptographic operations. Lastly, we look at the Boneh–Lynn–Shacham (BLS) signature scheme which utilized pairings to sign and verify messages.
In general, suppose that the prover wants to show that ∃w such that (x 0 , w) ∈ R 0 or (x 1 , w) ∈ R 1 for witness w and statements x 0 , x 1 without revealing which of the two statements x 0 , x 1 is true. Here we show that if we have a protocol (P 0 , V 0 ) for R 0 and protocol (P 1 , V 1 ) for R 1 , we can obtain a protocol for R 0 OR R 1 by running the protocols in parallel. We can assume, without loss of generality, that the prover knows that x 0 is true and x 1 is false. Because the prover knows a witness for x 0 , it can answer all possible verifier challenges, so nothing special needs to be done for this protocol. However, for x 1 , we allow the prover to ”cheat” by letting the prover control the challenge for one of the two statements. The prover can only control one of the two challenges otherwise the prover could easily cheat the proof. Essentially, the prover computes two zero-knowledge proofs in parallel and controls one challenge for a statement that is unknown to the verifier.
A simulator can run the two challenges in parallel, similar to the prover in the scenario above. It can simply guess the challenges b 0 and b 1 at random and simulate the transcript for the first message. After receiving c from the verifier, the simulator can check if c = b 0 ⊕b 1. If it is, then the simulator can continue with the protocol as usual. Otherwise, the simulator can restart.
Suppose that a prover wants to show a verifier that they have encrypted a single bit. The en- cryption scheme has public parameters (g, gα) for group g and secret α. The prover encrypts the bit b with randomness c as m = Enc(b, (g, gα), c) = (gαcgb, gc). We want to show that m is either m = (gαcg^0 , gc) or m = (gαcg^1 , gc). If b = 0, then m = (gαcg^0 , gc) = (gαc, gc) which when combined with the public parameters (g, gα) creates a DH tuple (g, gα, gc, gαc). If b = 1, then m = (gαcg^1 , gc) = (gαc+1, gc). In this case, we can create a DH tuple if we divide the last term of the tuple (g, gα, gc, gαc+1) by g. However, revealing if either of the tuples are DH tuples reveals the bit b to the verifier. To put it more clearly, the statements are:
Applying the OR composition from above, we can simply take the statement 1 as x 0 and statement 2 as x 1 to prove that b ∈ { 0 , 1 } without revealing the true value of b. Futhermore, we can expand this to multiple bits as we did above with the OR composition.
Example 17.3. e(g 0 a , gb 1 ) = (e(g 0 , gb 1 ))a^ = (e(g 0 , g 1 ))ab^ = e(g 0 b, ga 1 )
Let’s consider when G 0 = G 1. Then, g 0 = g 1. Going back to the DDH assumption, let’s suppose we have a triple (u, v, w) = (ga 0 , gb 0 , gab 0 ). The DDH assumption states that (u, v, w) is indistinguishable from (ga 0 , gb 0 , gc 0 ) for a random c. We show that the DDH assumption does not hold for pairing based groups when G 0 = G 1.
Proof. We are given (ga 0 , g 0 b, gc 0 ). We can compute e(g 0 a , gb 0 ) = (e(g 0 , g 0 ))ab. Furthermore, we can compute e(g 0 c, g 0 ) = (e(g 0 , g 0 ))c. Let e(g 0 , g 0 ) = gT. Since we can easily compute gabT and gcT , we can distinguish between the two DDH tuples (u, v, w) = (g 0 a , gb 0 , g 0 ab ) and (u, v, w) = (ga 0 , g 0 b, gc 0 ) for a random c. Thus, the DDH assumption does not hold for pairing based groups.
A simple distinction between pairing based groups and normal groups is that in normal groups, given ga, gb, it is hard to compute gab. In pairing based groups however, since we have the pairing function e, given g 0 a , gb 1 , it is easy to compute gabT.
Recall: the old Computational Diffie-Hellman (CDH) assumption stated that given g 0 a , gb 0 , calculating gab 0 is hard. We play off this same assumption here. Note that computing gTab is easy, but we can assume that calculating gab 0 is hard since the pairing function e maps G 0 × G 1 to a different target group GT.
Assumption 17.4. We sample a random (a, b) ∈ Zq. We construct a triple (u 0 , u 1 , v 0 ) where u 0 = ga 0 , u 1 = ga 1 , v 0 = gb 0 and send the triple to the attacker. The attacker outputs some z′^ ∈ G 0. If z′^ = g 0 ab , the attacker wins.
This is a stronger version of the old CDH assumption, since we also provide the attacker with ga 1 and maintain the hardness of computing g 0 ab. The attacker should not be able to learn either a or b through this assumption.
We construct the BLS signature scheme that is based off of the Co-CDH assumption we discussed in Section 17.6. We construct this signature scheme as follows, assuming we have pairing-based groups G 0 , G 1 and a function e that pairs these to a target group GT.
In more detail, given a message m, a public key g 1 a , and a signature σ, we verify it as follows:
An important note is that, according to the Co-CDH assumption, it is hard to forge a signature of a message m because of the one-way nature of the pairing operation e.
These scribe notes were prepared by editing a light modification of the template designed by Alexander Sherstov.