Naor–Reingold pseudorandom function

From HandWiki

In 1997, Moni Naor and Omer Reingold described efficient constructions for various cryptographic primitives in private key as well as public-key cryptography. Their result is the construction of an efficient pseudorandom function. Let p and l be prime numbers with l |p−1. Select an element g𝔽p* of multiplicative order l. Then for each (n+1)-dimensional vector a = (a0,a1, ..., an)∈ (𝔽l)n+1 they define the function

fa(x)=ga0a1x1a2x2...anxn𝔽p

where x = x1 ... xn is the bit representation of integer x, 0 ≤ x ≤ 2n−1, with some extra leading zeros if necessary.[1]

Example

Let p = 7 and l = 3; so l |p−1. Select g = 4 ∈ 𝔽7* of multiplicative order 3 (since 43 = 64 ≡ 1 mod 7). For n = 3, a = (1, 1, 2, 1) and x = 5 (the bit representation of 5 is 101), we can compute fa(5) as follows:

fa(x)=ga0a1x1a2x2...anxn𝔽p
fa(5)=41112011=41=4𝔽7

Efficiency

The evaluation of function fa(x) in the Naor–Reingold construction can be done very efficiently. Computing the value of the function fa(x) at any given point is comparable with one modular exponentiation and n-modular multiplications. This function can be computed in parallel by threshold circuits of bounded depth and polynomial size.

The Naor–Reingold function can be used as the basis of many cryptographic schemes including symmetric encryption, authentication and digital signatures.

Security of the function

Assume that an attacker sees several outputs of the function, e.g. fa(1)=ga1,fa(2)=ga2,fa(3)=ga1a2, ... fa(k)=ga1x1a2x2...anxn and wants to compute fa(k+1). Assume for simplicity that x1 = 0, then the attacker needs to solve the computational Diffie–Hellman (CDH) between fa(1)=ga1 and fa(k)=ga2x2...anxn to get fa(k+1)=ga1a2x2anxn. In general, moving from k to k + 1 changes the bit pattern and unless k + 1 is a power of 2 one can split the exponent in fa(k+1) so that the computation corresponds to computing the Diffie–Hellman key between two of the earlier results. This attacker wants to predict the next sequence element. Such an attack would be very bad—but it's also possible to fight it off by working in groups with a hard Diffie–Hellman problem (DHP).

Example: An attacker sees several outputs of the function e.g. fa(5)=4112011=41=4, as in the previous example, and fa(1)=4102011=41=4. Then, the attacker wants to predict the next sequence element of this function, fa(6). However, the attacker cannot predict the outcome of fa(6) from knowing fa(1) and fa(5).

There are other attacks that would be very bad for a pseudorandom number generator: the user expects to get random numbers from the output, so of course the stream should not be predictable, but even more, it should be indistinguishable from a random string. Let 𝒜f denote the algorithm 𝒜 with access to an oracle for evaluating the function fa(x) . Suppose the decisional Diffie–Hellman assumption holds for 𝔽p, Naor and Reingold show that for every probabilistic polynomial time algorithm 𝒜 and sufficiently large n

Pr [𝒜fa(x)(p,g)1]Pr [𝒜R(p,g)1] is negligible.

The first probability is taken over the choice of the seed s = (p, g, a) and the second probability is taken over the random distribution induced on p, g by 𝒢(n), instance generator, and the random choice of the function Ra(x) among the set of all {0,1}n𝔽p functions.[2]

Linear complexity

One natural measure of how useful a sequence may be for cryptographic purposes is the size of its linear complexity. The linear complexity of an n-element sequence W(x), x = 0,1,2,...,n – 1, over a ring is the length l of the shortest linear recurrence relation W(x + l) = Al−1 W(x +l−1) + ... + A0 W(x), x = 0,1,2,..., nl −1 with A0, ..., Al−1, which is satisfied by this sequence.

For some γ > 0,n ≥ (1+ γ) logl, for any δ>0, sufficiently large l, the linear complexity of the sequence fa(x),0 ≤ x ≤ 2n-1, denoted by La satisfies

La{l1 δ, if γ2l( γ2 δ), if γ<2

for all except possibly at most 3(l1)nδ vectors a ∈ (𝔽l)n.[3] The bound of this work has disadvantages, namely it does not apply to the very interesting case logplognn.

Uniformity of distribution

The statistical distribution of fa(x) is exponentially close to uniform distribution for almost all vectors a(𝔽l)n.

Let 𝐃a be the discrepancy of the set {fa(x)|0x2n1}. Thus, if n=logp is the bit length of p then for all vectors a ∈ (𝔽l)n the bound 𝐃aΔ(l,p) holds, where

Δ(l,p)={p(1 γ2)l(12)log2p if lpγp(12)l1log2p if pγ>lp(23)p(14)l(58)log2p if p(23)>lp(12)p(18)l(38)log2p if p(12)>lp(13)

and

γ=2.5log3=0.9150

Although this property does not seem to have any immediate cryptographic implications, the inverse fact, namely non uniform distribution, if true would have disastrous consequences for applications of this function.[4]

Sequences in elliptic curve

The elliptic curve version of this function is of interest as well. In particular, it may help to improve the cryptographic security of the corresponding system. Let p > 3 be prime and let E be an elliptic curve over 𝔽p, then each vector a defines a finite sequence in the subgroup G as:

Fa(x)=(a1x1a2x2anxn)G

where x=x1xn is the bit representation of integer x,0x2n1. The Naor–Reingold elliptic curve sequence is defined as

uk=X(fa(k))where X(P) is the abscissa ofPE.[5]

If the decisional Diffie–Hellman assumption holds, the index k is not enough to compute uk in polynomial time, even if an attacker performs polynomially many queries to a random oracle.https://en.wikipedia.org/wiki/Elliptic_curve

See also

Notes

  1. Naor, M., Reingold, O. "Number-theoretic constructions of efficient pseudo-random functions," Proc 38th IEEE Symp. on Foundations of Comp. Sci, (1997), 458–467.
  2. Boneh, Dan. "The Decision Diffie–Hellman Problem,"ANTS-III: Proceedings of the Third International Symposium on Algorithmic Number Theory,1998,48–63.
  3. Shparlinski, Igor E. "Linear Complexity of the Naor–Reingold pseudo-random function," Inform. Process Lett, 76 (2000), 95–99.
  4. Shparlinski, Igor E. "On the uniformity of distribution of the Naor–Reingold pseudo-random function," Finite Fields and Their Applications, 7 (2001), 318–326
  5. Cruz, M., Gomez, D., Sadornil, D. "On the linear complexity of the Naor–Reingold sequence with elliptic curves," Finite Fields and Their Applications, 16 (2010), 329–333

References

  • Naor, Moni; Reingold, Omer (2004), "Number-theoretic constructions of efficient pseudo-random functions", Journal of the Association for Computing Machinery 51 (2): 231–262, doi:10.1145/972639.972643 .
  • Shparlinski, Igor (2003), Cryptographic Applications of Analytic Number Theory: Complexity Lower Bounds and Pseudorandomness (first ed.), Birkhäuser Basel, ISBN 978-3-7643-6654-4 
  • Goldreich, Oded (1998), Modern Cryptography, Probabilistic Proofs and Pseudorandomness (first ed.), Springer, ISBN 978-3-540-64766-9