Trapdoor hash functions

A trapdoor hash function compresses to a randomized hash value that has length independent of and hides , and for an index samples an encoding key that hides together with a trapdoor: from the hash of , a short hint computed from the encoding key and , and the trapdoor, the bit is recovered — DGI+19.

Syntax

A trapdoor hash function for index predicates is a tuple of efficient algorithms with hash length and hint length :

  • , a randomized algorithm outputting a hash key,
  • , a randomized algorithm taking an index and outputting an encoding key and a trapdoor,
  • , the hash of under coins ,
  • , the hint, computed with the same coins ,
  • , a deterministic algorithm outputting the hints consistent with and with .

The hash length is , independent of . The hint length is the parameter of interest: DGI+19 construct trapdoor hash functions with one-bit hints, , from DDH, QR, DCR and LWE.

Properties

A trapdoor hash function is required to be -correct for its error , input-private (computationally or statistically) and index-hiding — DGI+19.

Correctness

A trapdoor hash function is -correct, for a function , if for every polynomial there is a negligible function such that for all , and ,

over , and the coins , where , and — DGI+19.

Input lengths are polynomial in , as in the privacy and hiding games; with a fixed modulus, the LWE construction’s rounding error grows linearly in (LWE with superpolynomial ratio ⇒ TDH) — standard.

The receiver outputs the with when and fails otherwise. By the first inequality its output is wrong only with negligible probability; by the second it fails with probability at most . The error is a parameter of the construction, and an application must tolerate the error its instantiation has; in the constructions of DGI+19, is negligible or only inverse-polynomial — DGI+19.

Input privacy

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{ip}}_{\mathsf{TDH},\calA}(\secpar)$}
\begin{algorithmic}
\State $(x_0, x_1, \st) \gets \calA(1^\secpar)$; $b \getsr \bits$ \Comment{$x_0, x_1 \in \bits^n$}
\State $\mathsf{hk} \gets \Setup(1^\secpar, 1^n)$; $h \gets \hash(\mathsf{hk}, x_b; \rho)$ \Comment{fresh coins $\rho$}
\State $b' \gets \calA(\st, \mathsf{hk}, h)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A trapdoor hash function is input-private if for all efficient outputting of equal length,

is negligible, and statistically input-private if this holds for all , efficient or not, whose inputs have equal length polynomial in — DGI+19.

Index hiding

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{ih}}_{\mathsf{TDH},\calA}(\secpar)$}
\begin{algorithmic}
\State $(1^n, i_0, i_1, \st) \gets \calA(1^\secpar)$; $b \getsr \bits$ \Comment{$i_0, i_1 \in [n]$}
\State $\mathsf{hk} \gets \Setup(1^\secpar, 1^n)$; $(\mathsf{ek}, \td) \gets \KeyGen(\mathsf{hk}, i_b)$
\State $b' \gets \calA(\st, \mathsf{hk}, \mathsf{ek})$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}

A trapdoor hash function is index-hiding if for all efficient outputting ,

is negligible — DGI+19.

Variations

One-bit hints

A trapdoor hash function has one-bit hints if . As an object, it denotes a trapdoor hash function, correct, input-private and index-hiding as above, with . DGI+19 construct them from DDH, QR, DCR and LWE.

Rate-1 trapdoor hash functions

With one-bit hints, a receiver that sends encoding keys for indices of one input recovers bits of , each except with probability at most , from a single hash value and hint bits, bits in all, so the rate tends to 1 as grows; this underlies the rate-1 protocols of DGI+19.

Slightly sublinear trapdoor hash functions

In a slightly sublinear trapdoor hash function, the hash of has length for a compression factor , in place of a length independent of ; an encoding key for a function and its trapdoor recover from the hash and a short encoding of — AMR25.

TODO: the syntax, the compactness requirement (which compression factors qualify), and the correctness and privacy notions of AMR25, stated from the paper.

The first trapdoor hash function from LPN is of this kind: it rests on the hardness of low-noise LPN in dimension for efficient adversaries, at noise rate for a constant , has compression factor , and gives PIR with communication for a database of size , the first PIR with communication from a code-based assumption — AMR25.

Other results

  • Two-message rate-1 string OT from DDH, QR or LWE; PIR with communication polylogarithmic in the database size from DDH or QR, of rate 1 for block PIR; semi-compact homomorphic encryption for branching programs, whose encrypted output grows only with the program length, from DDH or QR; lossy trapdoor functions with input-to-output ratio approaching 1 from DDH, QR or LWE; constant-rate two-message statistically sender-private OT from LWE in the plain model; and rate-1 protocols for parallel OTs and for matrix–vector products from DDH, QR or LWE — DGI+19.

Participates in

Builds on Trapdoor hash functions

Produces Trapdoor hash functions