Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
CPSC 467: Cryptography and Computer Security
Michael J. Fischer
Lecture 21 November 18, 2015
CPSC 467, Lecture 21 1/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
The Legendre and Jacobi Symbols The Legendre symbol Jacobi symbol Computing the Jacobi symbol
BBS Pseudorandom Sequence Generator
Bit Commitment Problem Bit Commitment Using QR Cryptosystem Bit Commitment Using Symmetric Cryptography Bit Commitment Using Hash Functions Bit Commitment Using Pseudorandom Sequence Generators
Appendix 1: Formalization of Bit Commitment Schemes
Appendix 2: Security of BBS
CPSC 467, Lecture 21 2/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
The Legendre and Jacobi Symbols
CPSC 467, Lecture 21 3/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Notation for quadratic residues
The Legendre and Jacobi symbols form a kind of calculus for reasoning about quadratic residues and non-residues. They lead to a feasible algorithm for determining membership in 01 10 Qn ∪ Qn . Like the Euclidean gcd algorithm, the algorithm does not require factorization of its arguments. The existence of this algorithm also explains why the Goldwasser-Micali cryptosystem can’t use all of QNRn in the 01 10 encryption of “1”, for those elements in Qn ∪ Qn are readily determined to be in QNRn.
CPSC 467, Lecture 21 4/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Legendre Legendre symbol a Let p be an odd prime, a an integer. The Legendre symbol p is a number in {−1, 0, +1}, defined as follows:
+1 if a is a non-trivial quadratic residue modulo p a = 0 if a ≡ 0 (mod p) p −1 if a is not a quadratic residue modulo p
By the Euler Criterion, we have Theorem Let p be an odd prime. Then a p−1 ≡ a( 2 ) (mod p) p Note that this theorem holds even when p |a.
CPSC 467, Lecture 21 5/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Legendre Properties of the Legendre symbol The Legendre symbol satisfies the following multiplicative property: Fact Let p be an odd prime. Then
a a a a 1 2 = 1 2 p p p
Not surprisingly, if a1 and a2 are both non-trivial quadratic residues, then so is a1a2. Hence, the fact holds when a a 1 = 2 = 1. p p
CPSC 467, Lecture 21 6/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Legendre Product of two non-residues
Suppose a1 6∈ QRp, a2 6∈ QRp. The above fact asserts that the product a1a2 is a quadratic residue since a a a a 1 2 = 1 2 = (−1)(−1) = 1. p p p
Here’s why.
I Let g be a primitive root of p. k k I Write a1 ≡ g 1 (mod p) and a2 ≡ g 2 (mod p).
I Both k1 and k2 are odd since a1, a2 6∈ QRp. I But then k1 + k2 is even. (k +k )/2 k +k I Hence, g 1 2 is a square root of a1a2 ≡ g 1 2 (mod p), so a1a2 is a quadratic residue.
CPSC 467, Lecture 21 7/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Jacobi The Jacobi symbol The Jacobi symbol extends the Legendre symbol to the case where the “denominator” is an arbitrary odd positive number n.
Qk ei Let n be an odd positive integer with prime factorization i=1 pi . We define the Jacobi symbol by
k e a Y a i = (1) n pi i=1 The symbol on the left is the Jacobi symbol, and the symbol on the right is the Legendre symbol. a (By convention, this product is 1 when k = 0, so 1 = 1.) The Jacobi symbol extends the Legendre symbol since the two definitions coincide when n is an odd prime.
CPSC 467, Lecture 21 8/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Jacobi Meaning of Jacobi symbol
What does the Jacobi symbol mean when n is not prime? a I If n = +1, a might or might not be a quadratic residue. a I If n = 0, then gcd(a, n) 6= 1. a I If n = −1 then a is definitely not a quadratic residue.
CPSC 467, Lecture 21 9/67 Outline Legendre/Jacobi BBS Bit commitment Appendix 1: Formalization of Bit Commitment Schemes BBS Security
Jacobi Jacobi symbol = +1 for n = pq
Let n = pq for p, q distinct odd primes. Since
a a a = (2) n p q