Private information retrieval #
A database x : ι → β of entries in β (by default single bits β = Bool) is replicated on the
servers S. A user who wants the entry x i sends each server one query and reconstructs x i
from the answers. The scheme is private when no single server learns anything about i from its
query Chor, Goldreich, Kushilevitz and Sudan, Definition 1.
A one-round scheme P : PIR.Scheme ι S R Q A β (β defaults to Bool) consists of
- a query generator
P.query i : ProbComp (R × (S → Q)): a probabilistic program that, for the indexi, outputs the user's retained stater : Rand the queryq s : Qfor every servers; - deterministic answer functions
P.answer s x : Q → A, one per server; - a reconstruction function
P.reconstruct i r : (S → A) → β.
P.run x i is the user's output. P.IsCorrect says that this output is x i with probability one,
for every database and index; P.IsPrivate says that for every server s, the distribution of the
query P.serverQuery s i is the same for all indices i. Both are exact equalities of
distributions, as in the information-theoretic setting of the source. The randomness is a
ProbComp program, so its coins are uniform choices from finite ranges; the source's uniformly
random string r ∈ {0,1}^ℓ is the special case of ProbComp.uniform (Fin ℓ → Bool), and its
retained state is the random string itself. Privacy here (IsPrivate) is against each single
server; coalitions of servers (IsTPrivate) are covered in PIR.Collusion, and block-retrieval
transformations (β = κ → Bool) in PIR.Block. Machine running time of the user and servers
(CGKS, Section 2.4, p. 6) is not modelled here.
The communication cost PIR.communication S Q A counts the bits of a fixed-length binary encoding
of every query and answer: |S| · (⌈log₂ |Q|⌉ + ⌈log₂ |A|⌉). For Q = Fin ℓq → Bool and
A = Fin ℓa → Bool this is the source's k · (ℓq + ℓa).
Two transformations build schemes from schemes. Scheme.rows is the generic transformation of
CGKS, Section 3.4, restated as Proposition 4 in Section 4.1: a
database indexed by ρ × ι is a matrix with rows indexed by ρ, the user sends the query for the
column i, and each server answers it once for every row. Its communication is computed for
one-bit answers (PIR.communication_rows), the case that Section 3.4 uses. Scheme.comap
restricts a scheme along an embedding of indices, padding the database outside the image with a
supplied default entry pad : β; it turns a scheme for a grid or a cube into one for Fin n.
Both keep the queries of P up to reindexing, so IsPrivate.of_query_eq transfers privacy to them
and to the transformations of PIR.Block.
The existence statement PIR.HasScheme ι k c β (some correct, private k-server scheme for
databases ι → β communicating at most c bits) is the t = 1 case of PIR.HasTPrivateScheme
and lives in PIR.Collusion.
Main definitions #
Cslib.Crypto.Protocols.PIR.Scheme: one-round multi-server schemes (with optional payload typeβ := Bool).Cslib.Crypto.Protocols.PIR.Scheme.run,Cslib.Crypto.Protocols.PIR.Scheme.serverQuery: the user's output and the query seen by one server.Cslib.Crypto.Protocols.PIR.Scheme.IsCorrect,Cslib.Crypto.Protocols.PIR.Scheme.IsPrivate: perfect correctness and perfect privacy.Cslib.Crypto.Protocols.PIR.communication: the communication cost.Cslib.Crypto.Protocols.PIR.Scheme.rows,Cslib.Crypto.Protocols.PIR.Scheme.comap: the rows transformation and restriction along an embedding.
Main results #
Cslib.Crypto.Protocols.PIR.Scheme.isCorrect_iff: correctness on the support of the queries.Cslib.Crypto.Protocols.PIR.Scheme.IsPrivate.of_query_eq: privacy transfers to a scheme whose queries have the law of the queries of a private scheme, up to reindexing.Cslib.Crypto.Protocols.PIR.Scheme.IsCorrect.rows,Cslib.Crypto.Protocols.PIR.Scheme.IsPrivate.rows,Cslib.Crypto.Protocols.PIR.Scheme.IsCorrect.comap,Cslib.Crypto.Protocols.PIR.Scheme.IsPrivate.comap: both transformations preserve correctness and privacy.Cslib.Crypto.Protocols.PIR.communication_rows: the rows transformation multiplies the answer length by the number of rows.Cslib.Crypto.Protocols.PIR.communication_le_of_clog_le,Cslib.Crypto.Protocols.PIR.clog_card_fun_le: communication from per-server query and answer lengths, and the length of a tuple of symbols.
References #
- B. Chor, O. Goldreich, E. Kushilevitz, M. Sudan, Private information retrieval, J. ACM 45(6), 1998; numbering of the authors' journal version of April 21, 1998
A one-round private information retrieval scheme for databases x : ι → β (by default single
bits β = Bool, or blocks in Section 4) held by the servers S, with user state R, queries Q
and answers A CGKS, Definition 1 and Section 4.
The user's query generator: for the index
i, a retained state and one query per server.- answer : S → (ι → β) → Q → A
The answer of the server
s, holding the databasex, to a query. - reconstruct : ι → R → (S → A) → β
The user's reconstruction of the entry
x ifrom the retained state and the answers.
The communication cost of a one-round scheme with servers S, queries Q and answers A:
the number of bits sent and received when each query and each answer is written in a fixed-length
binary encoding, |S| · (⌈log₂ |Q|⌉ + ⌈log₂ |A|⌉).
With 2 ^ ℓ answers, the answers carry ℓ bits.
Communication is bounded by any per-server bounds on the query and answer lengths.
A κ-tuple of symbols is encoded in at most |κ| times the bits of one symbol.
The user's output on the database x and the index i: draw the state and the queries, ask
each server, and reconstruct from the answers.
The query that the server s receives when the user wants the entry i.
Perfect correctness: on every database, the user outputs the entry it asks for with probability one.
Perfect privacy: for every server, the distribution of its query does not depend on the index that the user asks for.
Perfect correctness holds exactly when every state and every queries that the user can draw reconstruct the right entry.
A correct scheme reconstructs the right entry from every state and queries the user can draw.
In a private scheme, each server's query has the same distribution for all indices.
Privacy transfer. If the queries that P' sends for i have the law of the queries that
the private scheme P sends for f i, then P' is private. The retained states, answers and
reconstructions of the two schemes are unconstrained.
The rows transformation #
The rows transformation CGKS, Section 3.4: a database
indexed by ρ × ι is a matrix whose rows j ↦ x (j, ·) are databases indexed by ι. To read
x (j, i), the user sends the queries of P for the column i, each server answers them for
every row, and the user reconstructs from the answers for the row j.
Restriction along an embedding #
The scheme P for databases indexed by ι', used on databases indexed by ι through an
embedding e : ι ↪ ι': the user asks for e i, and the servers pad the database with pad
outside the image of e.
The rows transformation keeps the queries and multiplies the length of each one-bit answer by the number of rows CGKS, Section 3.4; this is the one-bit answer case of the accounting in Proposition 4 (Section 4.1).