Decisional Diffie-Hellman

The Decisional Diffie-Hellman (DDH) assumption states that, in a cyclic group output by a group generator, every efficient adversary distinguishes from for uniform exponents with negligible advantage. Under it, the key exchange of DH76 gives a key indistinguishable from a uniform group element (DDH ⇒ Non-interactive key exchange (NIKE)) — folklore. It implies the CDH assumption: an adversary which can solve the CDH problem can also solve DDH in the same group (DDH ⇒ CDH) — folklore.

Assumption

Informally, the DDH assumption concerns a cyclic group generation algorithm which takes as input a security parameter and outputs a succinct1 description of a cyclic group where is the group set, is a generator for the group, and is the order of the group. Every group outputs is non-trivial: for every .

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{ddh}}_{\GrGen,\calA}(\secpar)$}
\begin{algorithmic}
\State $(\GG,g,p) \gets \GrGen(1^\secpar)$
\State $x \getsr [p]$ ; $y \getsr [p]$ ; $z \getsr [p]$
\State $X \gets g^x$ ; $Y \gets g^y$
\State $b \getsr \bits$
\State $Z_0 \gets g^{xy}$ ; $Z_1 \gets g^{z}$
\State $\hat{b} \gets \calA(1^\secpar, \GG, g, p, X, Y, Z_b)$
\Return $[\hat{b} = b]$
\end{algorithmic}
\end{algorithm}

We say that DDH is hard for a group generation algorithm if for all efficient

is negligible. Since a group generator computes the group operation in polynomial time, DDH hardness forces , over the coins of , to be negligible. For each constant , the adversary that, when , finds by trying every exponent in and outputs , and otherwise outputs a uniform bit, wins with probability on each group with and on the others, so its advantage is . Hence is negligible for every , and so is — standard.

Known Results

Variations

In the above definition, we implicitly allow to choose a random generator for the group . However, BMZ19 has explored technical differences between this model and one where is selected deterministically.

DDH in prime-order groups

DDH is hard in prime-order groups for if every group outputs has prime order and DDH is hard for . Exponents then form the field , and the Chaum–Pedersen proof that a tuple is a Diffie–Hellman tuple is sound — standard.

DDH in prime-order groups with decidable membership

DDH is hard in prime-order groups with decidable membership for if DDH is hard in prime-order groups for and a deterministic polynomial-time algorithm decides, given any that outputs and a string, whether the string encodes an element of . Only membership of elements is decided, for groups that itself outputs; DLOG in verifiable prime-order groups also checks an arbitrary group description. The order- subgroup of for a prime with qualifies, since an integer lies in it if and only if — standard. Dropping the membership test gives DDH in prime-order groups (Prime-order DDH with decidable membership ⇒ Prime-order DDH) — folklore.

DDH in paired groups

A paired group generator outputs two prime-order groups and in which is the subgroup of order of , so that divides . DDH is hard in paired groups for such a generator if DDH is hard in each group given the description of both: for every efficient , is negligible in the DDH game run in in which receives the generator’s full output in place of , together with the challenge , and likewise in the DDH game run in , given the same full output and a challenge in . The Double-strand Cramer–Shoup scheme is rerandomizable and RCCA-secure under this assumption (Paired-group DDH ⇒ Rerandomizable RCCA encryption) — PR07. Keeping only the first group gives a group generator for which DDH is hard in prime-order groups (Paired-group DDH ⇒ prime-order DDH) — folklore.

Sub-exponential DDH

DDH is sub-exponentially hard for if there is a constant such that for all sufficiently large , every adversary of size at most has — standard. The weaker form that bounds only polynomial-time adversaries by advantage suffices for NIZK arguments for , and no pairing is needed (Sub-exponential DDH ⇒ NIZK argument for NP) — JJ21.

DLIN

Given for and , distinguish from — BBS04. Formally, for a group generator that outputs groups of prime order , DLIN is hard for if for all efficient ,

is negligible, over , and .

For a group generator as in the DDH assumption:

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{dlin}}_{\GrGen,\calA}(\secpar)$}
\begin{algorithmic}
\State $(\GG, g, p) \gets \GrGen(1^\secpar)$
\State $u, v, h \getsr \GG$ ; $a, b, z \getsr \ZZ_p$
\State $\beta \getsr \bits$
\State $c_0 \gets a + b$ ; $c_1 \gets z$
\State $\beta' \gets \calA(1^\secpar, \GG, g, p, u, v, h, u^a, v^b, h^{c_\beta})$
\Return $[\beta' = \beta]$
\end{algorithmic}
\end{algorithm}

DLIN is hard for if every group outputs has prime order and for all efficient ,

is negligible.

k-Lin

The -Linear assumption is defined on Bilinear map assumptions.

Matrix Diffie-Hellman

Let output with prime, and for write . For , a matrix distribution outputs, in polynomial time, a matrix in of rank ; . The -MDDH assumption states that, given for , no efficient adversary can tell whether a vector in lies in the span of the columns of — EHK+13.

\begin{algorithm}
\algname{Game}
\caption{$\Game^{\mathrm{mddh}}_{\calD_{\ell,k},\GrGen,\calA}(\secpar)$}
\begin{algorithmic}
\State $(\GG, g, p) \gets \GrGen(1^\secpar)$
\State $\mathbf{A} \gets \calD_{\ell,k}$ ; $\mathbf{w} \getsr \ZZ_p^k$ ; $\mathbf{u} \getsr \ZZ_p^{\ell}$
\State $b \getsr \bits$
\State $\mathbf{z}_0 \gets \mathbf{A}\mathbf{w}$ ; $\mathbf{z}_1 \gets \mathbf{u}$
\State $\hat{b} \gets \calA(1^\secpar, \GG, g, p, g^{\mathbf{A}}, g^{\mathbf{z}_b})$
\Return $[\hat{b} = b]$
\end{algorithmic}
\end{algorithm}

-MDDH is hard for if for all efficient ,

is negligible — EHK+13. Choices of recover DDH, DLIN and -Lin; two new distributions, -SCasc and -ILin, give MDDH assumptions that are generically hard in bilinear groups and have a shorter description than -Lin — EHK+13.

As an object, Matrix Diffie-Hellman denotes the assumption that -MDDH is hard for for some matrix distribution with and ; a result from it must therefore hold for every such distribution. DDH in prime-order groups is the -MDDH assumption, so it implies Matrix Diffie-Hellman (Prime-order DDH ⇒ Matrix DH) — EHK+13. Hardness for every matrix distribution is false: the distribution that always outputs has rank , every vector has last entry , and testing whether the last entry of is the identity of has advantage — standard.

SXDH (Symmetric External Diffie-Hellman)

Assumes DDH is hard in both and of an asymmetric (Type 3) pairing; used to instantiate Groth–Sahai proofs efficiently (SXDH (Symmetric External Diffie-Hellman) ⇒ NIZK) — GS08.

Sub-exponential SXDH

SXDH is sub-exponentially hard if there is a constant such that for all sufficiently large , every adversary of size at most has advantage at most against DDH in each of and .

SXDH, LWE and LPN over a common prime

Let output an asymmetric bilinear group : groups of prime order with , generators of and of , and an efficiently computable non-degenerate bilinear pairing . SXDH, LWE and LPN are sub-exponentially hard over a common prime for if there are constants and and polynomials and with for such that, for every polynomial and every polynomial , for all sufficiently large , every adversary of size at most that receives with its challenge has advantage at most in each of three problems: (i) DDH in and DDH in , as in the DDH game; (ii) decision LWE over with secret dimension , samples and discrete-Gaussian error of width , so that the modulus-to-noise ratio is below ; (iii) LPN over with secret dimension and samples, each noise coordinate with probability and uniform in otherwise. This is the joint premise of JLS21 (arXiv v1, Theorem 5.5): sub-exponential hardness of SXDH in bilinear groups of order , of LWE with modulus-to-noise ratio and of for , for one efficiently samplable -bit prime ; the construction sets and polynomial noise, so that (Appendix B) — JLS21. Problem (i) alone is sub-exponential SXDH for the same generator (SXDH, LWE and LPN over a common prime ⇒ Sub-exponential SXDH) — folklore.

Attacks

In the DDH game write , with and .

  • Baby-step giant-step: a generic algorithm for the underlying discrete logarithm problem. Given , it finds in group operations and space by writing (where ) and matching across a hash table — Sha71. A DLOG solver breaks DDH: given it computes and checks whether , so baby-step giant-step distinguishes DDH tuples in group operations — standard. The other DLOG algorithms are listed under DLOG attacks.
  • Small prime factors of the group order: let be a prime dividing . Then has order , and , and . The distinguisher reads off , and modulo by comparing these elements with , and outputs , after group operations. A real tuple always gives . For a random tuple, is uniform on and independent of , because is uniform modulo and , so the distinguisher outputs with probability ; it wins with probability , an advantage of — standard. For a polynomial , finding a prime factor of by trial division, running this test if there is one and outputting a uniform bit otherwise gives advantage at least . DDH hardness therefore requires, for every polynomial , that have a prime factor at most with negligible probability, whether or not is smooth and whether or not DLOG is hard; in particular DDH fails for every group generator whose groups have even order, the test with having advantage . Pohlig–Hellman, which reduces DLOG to the subgroups of prime-power order — PH78, as described in Eng07 (Section 1.1) — computes itself in polynomial time only when every prime factor of is small; the test above needs only one.
  • Legendre symbol in : let be an odd prime and a generator of , so that . Euler’s criterion computes the Legendre symbol with one exponentiation, and , since is a square root of modulo the prime ; so reveals . This is the attack above for , which divides : the distinguisher outputs iff , that is, iff exactly when ; a real tuple always gives , a random one gives with probability , and the advantage is — standard. DDH therefore fails in for every odd prime , including a safe prime , whose order is not smooth and in which DLOG and CDH are conjectured hard (CDH attacks).
  • DDH is easy in groups with efficient pairings: in groups that admit an efficient bilinear pairing (symmetric/Type-1 pairings, e.g., certain supersingular elliptic curves), DDH is easy — JN03. Given , check whether ; for a non-degenerate pairing on a group of prime order this holds iff , so the test has advantage — standard. DDH is therefore not a reasonable assumption in Type-1 pairing groups — see bilinear map assumptions.

The two subgroup attacks need a small prime factor of . DDH is therefore assumed in groups whose order has no small prime factor, typically groups of prime order such as the subgroup of quadratic residues modulo a safe prime (group generators), every element of which has Legendre symbol — standard.

Participates in

Builds on Decisional Diffie-Hellman

Produces Decisional Diffie-Hellman

Barriers

Footnotes

  1. Succinct means that the tuple is at most -bits, but may be super-polynomial in ↩