Subcube schemes for private information retrieval #
The schemes of Chor, Goldreich, Kushilevitz and Sudan, Section 3 ask each server for the exclusive or of the database bits over a set of positions.
- Two servers (
PIR.twoServer, Section 3.1). To readx i, the user draws a uniform setT ⊆ ι, sendsTto one server andT Δ {i}to the other, and adds the two answers⊕_{j ∈ T} x jand⊕_{j ∈ T Δ {i}} x j. Sets are bit strings and the answer toais the Hadamard codewordx ⬝ᵥ a(BitString.hadamardCode). Each server sees a uniform set, so the scheme is private, and it communicates2 (n + 1)bits. 2 ^ dservers (PIR.cube, Section 3.2). The database is indexed by a cubeD → ι, withd = |D|andℓ = |ι|. The user draws uniform setsT l ⊆ ιforl : Dand sends the serverσ : D → Boolthe setsT l Δ {i l}for the coordinates withσ l = trueandT lfor the others. The server answers with the exclusive or of the database over the subcube∏ l, (its set for l), and the user adds the2 ^ danswers: every position other thanilies in an even number of the subcubes. The scheme communicates2 ^ d (d ℓ + 1)bits.- Balancing (Section 3.4, Corollary 3). The rows transformation applied to the two-server
scheme reads an
m × nmatrix with2 (m + n)bits (PIR.communication_twoServer_rows), so everyn ≤ m ^ 2has a two-server scheme with4 mbits (PIR.hasScheme_two_of_le_mul_self), in particular4 (⌊√n⌋ + 1)bits (PIR.hasScheme_two_sqrt). Likewise everyn ≤ ℓ ^ dhas a2 ^ d-server scheme with2 ^ d (d ℓ + 1)bits (PIR.hasScheme_two_pow_of_le_pow). A database ofnbits is placed in the grid or cube through an embedding, padding withfalse.
Flipping one coordinate of a server changes its query in a single set
(PIR.query_update_cube). The covering-code schemes of Section 3.3 (PIR.CoveringCode) use this
to let fewer servers emulate all 2 ^ d.
Main definitions #
Cslib.Crypto.Protocols.PIR.twoServer: the basic two-server scheme.Cslib.Crypto.Protocols.PIR.cube: the2 ^ d-server subcube scheme.
Main results #
Cslib.Crypto.Protocols.PIR.isCorrect_twoServer,Cslib.Crypto.Protocols.PIR.isPrivate_twoServer,Cslib.Crypto.Protocols.PIR.communication_twoServer: the two-server scheme.Cslib.Crypto.Protocols.PIR.isCorrect_cube,Cslib.Crypto.Protocols.PIR.isPrivate_cube,Cslib.Crypto.Protocols.PIR.communication_cube: the subcube scheme.Cslib.Crypto.Protocols.PIR.communication_twoServer_rows:2 (m + n)bits for anm × nmatrix.Cslib.Crypto.Protocols.PIR.hasScheme_two_of_le_mul_self,Cslib.Crypto.Protocols.PIR.hasScheme_two_sqrt,Cslib.Crypto.Protocols.PIR.hasScheme_two_pow_of_le_pow: schemes forn-bit databases.
References #
- B. Chor, O. Goldreich, E. Kushilevitz, M. Sudan, Private information retrieval, Sections 3.1, 3.2 and 3.4
Two servers #
The basic two-server scheme CGKS, Section 3.1. The
servers are false and true. For the index i, the user draws a uniform t : ι → Bool and sends
t to the server false and t + eᵢ to the server true. Each server answers with the parity
x ⬝ᵥ a of the database on the set a it receives, and the user adds the two answers.
Each server of the two-server scheme receives a uniform set, whatever the index.
The two-server scheme is private CGKS, Section 3.1.
The two-server scheme is correct CGKS, Section 3.1:
the answers x ⬝ᵥ t and x ⬝ᵥ (t + eᵢ) add up to x i.
The two-server scheme sends n bits to each server and receives one bit from each.
The rows transformation of the two-server scheme reads an m × n matrix with 2 (m + n) bits
CGKS, Section 3.4.
2 ^ d servers #
The subcube scheme with 2 ^ |D| servers CGKS, Section 3.2
for databases indexed by the cube D → ι. The servers are σ : D → Bool. For the index i, the
user draws uniform sets t l : ι → Bool and sends the server σ the sets t l + σ l • e_{i l}.
The server answers with the exclusive or ∑ j, x j * ∏ l, a l (j l) of the database over the
subcube ∏ l, a l it receives, and the user adds all the answers.
Each server of the subcube scheme receives |D| uniform independent sets, whatever the
index.
The subcube scheme is private CGKS, Section 3.2.
The subcube scheme is correct CGKS, Section 3.2: the
position i lies in exactly one of the 2 ^ d subcubes and every other position in an even
number of them.
The subcube scheme sends d sets of ℓ bits to each of the 2 ^ d servers and receives one
bit from each: 2 ^ d (d ℓ + 1) bits CGKS, Section 3.2.
The server σ of the subcube scheme answers with the sum of the database over its subcube.
The user of the subcube scheme adds the answers of all 2 ^ d servers.
Flipping the coordinate l of a server of the subcube scheme flips the membership of i l in
its l-th set: the query of update σ l (!σ l) is that of σ with e_{i l} added at l. This is
what lets one server emulate its neighbours CGKS, Section 3.3.
Schemes for n-bit databases #
Two servers with 4 m bits CGKS, Corollary 3: every
n ≤ m ^ 2 has a perfectly correct and perfectly private two-server scheme for n-bit databases
communicating 4 m bits.
2 ^ d servers with 2 ^ d (d ℓ + 1) bits
CGKS, Section 3.2: every n ≤ ℓ ^ d has a perfectly correct
and perfectly private 2 ^ d-server scheme for n-bit databases communicating 2 ^ d (d ℓ + 1)
bits. With ℓ = ⌈n ^ (1/d)⌉ this is the source's 2 ^ d (d n ^ (1/d) + 1).