Post · 11 min read· pp. 94–99

Cryptographic Assumptions in Hidden-Order Groups

In this post, we summarize some of the cryptographic hardness assumptions used in hidden-order groups.

\def\Adv{\mathcal{A}} \def\Badv{\mathcal{B}} \def\GenGho{\mathsf{GenGroup}_?} \def\Ghosz{|\Gho|} \def\Ghoid{1_{\Gho}} \def\primes#1{\mathsf{Primes}_{#1}} \def\QRn{\mathsf{QR}_N}

Terminology and notation

We try to describe these assumptions in terms of a generic hidden-order group \Gho\Gho of order \Ghosz\Ghosz. We denote the identity element in such a group by \Ghoid\Ghoid.

Sometimes, we specifically refer to the RSA group \Gho=\ZNs\Gho=\ZNs. Specifically, let N=pqN = pq be the product of two sufficiently-large prime integers p,qp, q. Then, \ZNs={0<a<N∣gcd⁡(a,N)=1}\ZNs = \{0 < a < N \mathrel| \gcd(a, N) = 1\} is the multiplicative group of integers co-prime with NN. Recall that the size or order of this group is given by the totient function: ∣\ZNs∣=ϕ(N)=(p−1)(q−1)|\ZNs| = \phi(N) = (p-1)(q-1).

Other times we might also refer to the class group of imaginary quadratic orders introduced by Buchmann and Williams [^BW88].

When we say “Assumption AA implies assumption BB” this means that “for AA to hold, BB must hold”. Or, put differently, this means that “AA can be broken given an algorithm that breaks BB”. For example, to say that “the Strong RSA assumption implies the order assumption (OA)” is the same thing as saying “the Strong RSA problem reduces to the order problem”, which is the same thing as saying “given an algorithm for solving the order problem, one can solve the Strong RSA problem.”

All of our probability clauses Pr⁡[… ]=\negl(λ)\Pr[\dots]=\negl(\lambda) below would more formally be stated as “for all polynomial probabilistic time (PPT) adversaries \Adv\Adv, there exists a negligible function \negl(⋅)\negl(\cdot) such that Pr⁡[… ]=\negl(λ)\Pr[\dots] = \negl(\lambda).

Assumptions

Factoring

Pr⁡[p,q←$\primes\poly(λ),N=pq:(p,q)←\Adv(N)]≤\negl(λ)\Pr \begin{bmatrix} p, q \xleftarrow{\$}\primes{\poly(\lambda)},\\ N = pq : \\ (p,q) \leftarrow \Adv(N) \\ \end{bmatrix} \leq \negl(\lambda)

Discrete logarithm

Pr⁡[\Gho←\GenGho(λ),(g,h)←$\Gho×\Gho,ℓ←\Adv(\Gho,g,h):gℓ=h]≤\negl(λ)\Pr \begin{bmatrix} \Gho \leftarrow \GenGho(\lambda),\\ (g,h) \xleftarrow{\$} \Gho \times \Gho,\\ \ell \leftarrow \Adv(\Gho, g, h) : \\ g^{\ell} = h \end{bmatrix} \leq \negl(\lambda)

Bach[^Bach84] shows that factoring NN reduces to computing discrete logs in \ZNs\ZNs.

The RSA assumption (RSA)

Introduced by Rivest, Shamir and Adleman in their seminal 1978 paper on public-key cryptosystems [^RSA78].

Pr⁡[\Gho←\GenGho(λ),(g,ℓ)←$\Gho×Z s.t. gcd⁡(ℓ,\Ghosz)=1u←\Adv(\Gho,g,ℓ):g1/ℓ=u]≤\negl(λ)\Pr \begin{bmatrix} \Gho \leftarrow \GenGho(\lambda),\\ (g, \ell) \xleftarrow{\$} \Gho \times \Z\ \text{s.t.}\ \gcd(\ell, \Ghosz)=1\\ u \leftarrow \Adv(\Gho, g, \ell) : \\ g^{1/\ell} = u \end{bmatrix} \leq \negl(\lambda)

When \Gho=\ZNs\Gho=\ZNs, we cannot have ℓ=2\ell=2 because it would not be co-prime with ϕ(N)=(p−1)(q−1)\phi(N) = (p-1)(q-1) and f(x)=xℓ=x2f(x) = x^\ell = x^2 would not be a permutation. But if the subgroup of quadratic residues \QRn\QRn is used, then ℓ=2\ell = 2 can be used (see here). So it is best not to restrict the definition above.

Strong RSA assumption

This assumption says that, given a random g∈\Ghog\in \Gho, it is hard to find any root of it: i.e., an integer ℓ\ell in Z\Z and a group element uu such that g1/ℓ=ug^{1/\ell} = u. Note that this generalizes the RSA assumption, which gives the adversary not only gg, but also the root ℓ\ell that should be computed.

Pr⁡[\Gho←\GenGho(λ),g←$\Gho,(u,ℓ)←\Adv(\Gho,g):g1/ℓ=u and ℓ>1]≤\negl(λ)\Pr \begin{bmatrix} \Gho \leftarrow \GenGho(\lambda),\\ g\xleftarrow{\$} \Gho,\\ (u,\ell) \leftarrow \Adv(\Gho, g) : \\ g^{1/\ell} = u\ \text{and}\ \ell > 1 \end{bmatrix} \leq \negl(\lambda)

Strong RSA assumption implies RSA assumption: If RSA assumption doesn’t hold then Strong RSA doesn’t either. To see this, consider a Strong RSA adversary \Adv\Adv that gets a random gg as input. Since RSA doesn’t hold, there exists an RSA adversary \Badv\Badv that given such a random gg and random ℓ∈Z\ell\in \Z with gcd⁡(ℓ,\Ghosz)=1\gcd(\ell, \Ghosz) = 1, outputs uu such that g1/ℓ=ug^{1/\ell} = u. Note that \Adv\Adv can use \Badv\Badv to break Strong RSA! Specifically, \Adv\Adv simply picks a random ℓ\ell which, with overwhelming probability is co-prime with \Ghosz\Ghosz (or else \Adv\Adv can factor NN ). Next, \Adv\Adv calls \Badv\Badv with gg and ℓ\ell, obtaining uu such that g1/ℓ=ug^{1/\ell} = u with non-negligible probability. Finally, \Adv\Adv simply outputs (u,ℓ)(u,\ell), breaking Strong RSA with non-negligible probability.

The order assumption (OA)

This assumption says that, given a random g∈\Ghog\in \Gho, it is hard to find any multiple of its order: i.e., an integer ℓ\ell such that gℓ=\Ghoidg^\ell = \Ghoid This is known as the order problem.

The earliest reference I could find to the order problem is in a paper by Gary L. Miller[^Mill76], which shows it to be equivalent to factoring (under the Extended Riemann Hypothesis).

Pr⁡[\Gho←\GenGho(λ),g←$\Gho,ℓ←\Adv(\Gho,g):ℓ≠0∧gℓ=\Ghoid]≤\negl(λ)\Pr \begin{bmatrix} \Gho \leftarrow \GenGho(\lambda),\\ g\xleftarrow{\$} \Gho,\\ \ell \leftarrow \Adv(\Gho, g) : \\ \ell \ne 0 \wedge g^\ell = \Ghoid \end{bmatrix} \leq \negl(\lambda)

Biehl et al. highlight that “The order problem can only be difficult if the order of random elements in G is large with a very high probability.”[^BBHM02]

DL assumption implies OA: Biehl et al.[^BBHM02] also give a reduction from the order problem to the discrete logarithm (DL) problem. Specifically, given an order problem instance gg, if one can compute the DL xx of gg relative to g−1g^{-1} such that gx=g−1g^x = g^{-1}, then this gives a solution to the order problem as gx+1=\Ghoidg^{x+1} = \Ghoid.

Strong RSA assumption implies OA: This is shown by Boneh et al.[^BBF18] in Lemma 3. Suppose there is a generic adversary \Adv\Adv who, given a (random) order problem gg, solves it by outputting an ℓ\ell such that gℓ=\Ghoidg^\ell = \Ghoid. Then, there exists an adversary \Badv\Badv that uses \Adv\Adv to solve a random Strong RSA problem gg. Specifically, \Badv\Badv uses \Adv\Adv to break the order problem gg and find the ℓ\ell mentioned above. Then, \Badv\Badv picks an odd prime ee that does not divide ℓ\ell and outputs u=ge−1 mod ℓu = g^{e^{-1} \bmod \ell} as the Strong RSA solution. Note that e−1 mod ℓe^{-1} \bmod \ell is notation for the multiplicative inverse of ee modulo ℓ\ell (i.e., ee−1≡1(modℓ)e e^{-1} \equiv 1 \pmod \ell). This inverse exists since gcd⁡(e,ℓ)=1\gcd(e, \ell)=1 (because ee is prime and does not divide ℓ\ell). The Extended Euclidean Algorithm (EEA) can be used to obtain the inverse a=e−1 mod ℓa = e^{-1} \bmod \ell by finding (a,b)(a,b) such that:

ae+bℓ=1⇒a=(1−bℓ)/eae + b\ell = 1 \Rightarrow a = (1 - b\ell)/e

Also, note that ue=gu^e = g and so (u,e)(u, e) is a solution to the Strong RSA problem gg:

ue=(ge−1 mod ℓ)e=(g1−bℓe)e=g1−bℓ=g/(gℓ)b=gu^e = (g^{e^{-1} \bmod \ell})^e = (g^\frac{1-b\ell}{e})^e = g^{1-b\ell} = g/(g^{\ell})^b= g

RSA assumption implies OA: Bieh et al.[^BBHM02] give a reduction from the RSA problem to the order problem [^reduction]. Specifically, given an RSA instance (g,e)(g, e) such that ee does not divide \Ghosz\Ghosz, if one can compute a multiple ℓ\ell of the order of gg such that gℓ=\Ghoidg^\ell = \Ghoid, then one can break the RSA instance as follows. We have two cases.

  • First case: If ee does not divide ℓ\ell, then we can break the assumption just like we broke Strong RSA above: output u=ge−1 mod ℓu = g^{e^{-1} \bmod \ell}.
  • Second case: If ee divides ℓ\ell, then we can let ℓ’=ℓ/e\ell’ = \ell / e. Importantly, since ee does not divide the order of \Gho\Gho, then ℓ’\ell’ is still a multiple of the order of gg[^ellprime]. Thus, we can output u=ge−1 mod ℓ’u = g^{e^{-1} \bmod \ell’} as before.

OA implies factoring assumption: We have to show that order problem reduces to factoring. Well, if you have a factoring oracle, you can factor N=pqN=pq, compute ϕ(N)=(p−1)(q−1)\phi(N)= (p-1)(q-1) and then factor ϕ(N)\phi(N) as well. Next, given an order problem gg, you know that gϕ(N)=\Ghoidg^{\phi(N)} = \Ghoid. If only multiples of the order are desired, then the problem is solved. Otherwise, if the actual order is required, then we know the order has to be a divisor of ϕ(N)\phi(N), the order of \ZNs\ZNs. Thus, one can repeatedly divide out the divisors of ϕ(N)\phi(N) from the exponent and check if the result is still \Ghoid\Ghoid. For details, see this post or see Algorithm 4.79 in Chapter 4 of the Handbook of Applied Cryptography [^MvV96Ch4Pubkey].

Factoring assumption implies OA: Miller[^Mill76] shows that one can factor NN if one can compute the order of random group elements in \ZNs\ZNs (see Theorem 4). Shor[^Shor97] explains this reduction succinctly (see Section 5).

OA in class groups: Hamdy and Moller[^HM00] explain how to solve the order problem in class groups whose class number is smooth.

Adaptive root assumption (ARA)

This assumption was introduced by Wesolowski [^Weso19], who initially called it the “root finding game”.

Pr⁡[\Gho←\GenGho(λ),(g,state)←$\Adv0(\Gho),ℓ←$\primesλ,u←\Adv1(state,g,ℓ):g1/ℓ=u and g≠\Ghoid]≤\negl(λ)\Pr \begin{bmatrix} \Gho \leftarrow \GenGho(\lambda),\\ (g, \mathsf{state}) \xleftarrow{\$} \Adv_0(\Gho),\\ \ell \xleftarrow{\$} \primes{\lambda}, \\ u \leftarrow \Adv_1(\mathsf{state}, g,\ell): \\ g^{1/\ell} = u\ \text{and}\ g\ne \Ghoid \end{bmatrix} \leq \negl(\lambda)

The low-order assumption (LOA)

This assumption was first formalized by Boneh et al [^BBF18A] in order to prove the security of Pietrzak [^Piet18e]’s verifiable delay function (VDF) in any hidden order group. (In contrast, Pietrzak proved his VDF secure in the subgroup of quadratic residues modulo a composite NN where this assumption holds unconditionally.) Informally, the assumptions says that the low-order problem is “hard” to solve: i.e., given a group \Gho\Gho of hidden-order, it is hard to find g∈\Ghog\in \Gho and ℓ≠0\ell \ne 0 such that gℓ=\Ghoidg^{\ell} = \Ghoid.

Pr⁡[\Gho←\GenGho(λ),(g,ℓ)←\Adv(\Gho):gℓ=\Ghoid,g≠\Ghoid and ℓ<2\poly(λ)]≤\negl(λ)\Pr \begin{bmatrix} \Gho \leftarrow \GenGho(\lambda),\\ (g, \ell) \leftarrow \Adv(\Gho) : \\ g^\ell = \Ghoid, g \ne \Ghoid\ \text{and}\ \ell < 2^{\poly(\lambda)} \end{bmatrix} \leq \negl(\lambda)

Distinction: LOA differs from the order assumption (OA) since the LOA adversary gets to choose both gg and ℓ\ell such that gℓ=1g^\ell = 1. In contrast, in OA, the adversary was given a random gg and needed to find an ℓ\ell.

Adaptive root assumption implies LOA: Boneh et al.[^BBF18A] show that LOA holds in generic groups[^DK02], because breaking it implies breaking the adaptive root assumption, which holds generically (see Section 4).

Seres and Burcsi[^SB20] explain that LOA is stronger than factoring arbitrary NN because in \QRn\QRn all elements are of high order, so factoring NN will not help. However, for particular kinds of NN, they show that factoring reduces to LOA.

Other notes

Hohenberger[^Hoh03] introduces the notion of a pseudo-free group and Rivest[^Rive04] shows that if \ZNs\ZNs is pseudo-free, then \ZNs\ZNs satisfies Strong RSA and DL.

Rabin[^Rabi79] shows that solving polynomial congruences ϕ(x)≡0(modN)\phi(x) \equiv 0 \pmod N is as hard as factoring NN (see Section 5). He also shows that an algorithm, which given (y,N)(y,N), computes quadratic residues xx such that x2=y(modN)x^2 = y \pmod N can be used to factor NN (see Theorem 1).

Shor[^Shor97] shows that finding the order ℓ\ell of a random element gg in \ZNs\ZNs (i.e., gℓ=1g^\ell = 1) can be done using a quantum computer in polynomial time. (Shor specifically requires ℓ\ell to be the order: i.e., the smallest such integer.) Then, Shor uses a reduction by Miller[^Mill76] to factor NN, given the quantum oracle for solving the order problem. Stephanie Blanda gives an intuitive explanation.

Theorem: For all a<Na < N, ∃r∈Z\exists r\in \Z, such that ar=1(modN)a^r = 1 \pmod N iff. gcd⁡(a,N)=1\gcd(a, N)=1 (see here).

Acknowledgements

Big thanks to Munshi Rejwan Ala Muid for pointing out a typo in the “Strong RSA assumption implies OA” subsection.

[^BW88]: A Key-Exchange System Based on Imaginary Quadratic Fields, by Johannes Buchmann and Hugh C. Williams, in Journal of Cryptology, 1988 [^Bach84]: Discrete logarithms and factoring, by Eric Bach, 1984, [URL] [^RSA78]: A method for obtaining digital signatures and public-key cryptosystems, by R. L. Rivest and A. Shamir and L. Adleman, in Communications of the {ACM}, 1978, [URL] [^Mill76]: Riemann’s hypothesis and tests for primality, by Gary L. Miller, in Journal of Computer and System Sciences, 1976, [URL] [^BBHM02]: A Signature Scheme Based on the Intractability of Computing Roots, by Biehl, Ingrid and Buchmann, Johannes and Hamdy, Safuat and Meyer, Andreas, in Designs, Codes and Cryptography, 2002, [URL] [^BBF18]: Batching Techniques for Accumulators with Applications to IOPs and Stateless Blockchains, by Dan Boneh and Benedikt Bünz and Ben Fisch, in Cryptology ePrint Archive, Report 2018/1188, 2018, [URL] [^reduction]: A reduction from the RSA problem to the order problem is an algorithm that solves the RSA problem given an oracle for solving the order problem. [^ellprime]: One way to see why gℓ’=\Ghoidg^{\ell’} = \Ghoid is to note that gℓ=gℓ’e=\Ghoidg^{\ell} = g^{\ell’ e} = \Ghoid and, since ee does not divide \Ghosz\Ghosz and ee is prime, it follows that gcd⁡(e,\Ghosz)\gcd(e, \Ghosz) = 1. Thus, ee can be inverted. Raising gℓ’e=\Ghoidg^{\ell’ e} = \Ghoid to the inverse e−1e^{-1} gives gℓ’=\Ghoidg^{\ell’} = \Ghoid. [^MvV96Ch4Pubkey]: Public-Key Parameters, by Menezes, Alfred J and van Oorschot, Paul C and Vanstone, Scott A, in Handbook of Applied Cryptography, 1996, [URL] [^Shor97]: Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, by Shor, Peter W., in SIAM Journal on Computing, 1997, [URL] [^HM00]: Security of Cryptosystems Based on Class Groups of Imaginary Quadratic Orders, by Hamdy, Safuat and M"oller, Bodo, in Advances in Cryptology — ASIACRYPT 2000, 2000 [^Weso19]: Efficient Verifiable Delay Functions, by Wesolowski, Benjamin, in Advances in Cryptology – EUROCRYPT 2019, 2019 [^BBF18A]: A Survey of Two Verifiable Delay Functions, by Dan Boneh and Benedikt Bünz and Ben Fisch, in Cryptology ePrint Archive, Report 2018/712, 2018, [URL] [^Piet18e]: Simple Verifiable Delay Functions, by Krzysztof Pietrzak, in Cryptology ePrint Archive, Report 2018/627, 2018, [URL] [^DK02]: Generic Lower Bounds for Root Extraction and Signature Schemes in General Groups, by Damg\aard, Ivan and Koprowski, Maciej, in Advances in Cryptology — EUROCRYPT 2002, 2002 [^SB20]: A Note on Low Order Assumptions in RSA groups, by István András Seres and Péter Burcsi, in Cryptology ePrint Archive, Report 2020/402, 2020, [URL] [^Hoh03]: The Cryptographic Impact of Groups with Infeasible Inversion, by Susan Rae Hohenberger, Master’s Thesis, MIT, 2003 [^Rive04]: On the Notion of Pseudo-Free Groups, by Rivest, Ronald L., in Theory of Cryptography, 2004 [^Rabi79]: Digitalized Signatures and Public-key Functions as Intractable as Factorization, by Rabin, M. O., 1979