Pseudorandom Numbers and Hash Functions from Iterations of Multivariate Polynomials
Alina Ostafe, Igor E. Shparlinski

TL;DR
This paper explores the use of polynomial iterations with slow degree growth to generate pseudorandom vectors and hash functions, providing new theoretical bounds and constructions for their mixing properties.
Contribution
It introduces new methods and extends previous results to more general polynomial orbits, leading to novel hash functions with proven mixing properties.
Findings
Good estimates of exponential sums along polynomial orbits
Stronger bounds on discrepancy for pseudorandom vectors
Design of new hash functions with mixing properties
Abstract
Dynamical systems generated by iterations of multivariate polynomials with slow degree growth have proved to admit good estimates of exponential sums along their orbits which in turn lead to rather stronger bounds on the discrepancy for pseudorandom vectors generated by these iterations. Here we add new arguments to our original approach and also extend some of our recent constructions and results to more general orbits of polynomial iterations which may involve distinct polynomials as well. Using this construction we design a new class of hash functions from iterations of polynomials and use our estimates to motivate their "mixing" properties.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCoding theory and cryptography · Chaos-based Image/Signal Encryption · Cryptography and Residue Arithmetic
Pseudorandom Numbers and Hash Functions
from Iterations of Multivariate Polynomials
Alina Ostafe
Institut für Mathematik, Universität Zürich, Winterthurerstrasse 190 CH-8057, Zürich, Switzerland
and
Igor E. Shparlinski
Department of Computing, Macquarie University NSW 2109, Australia
Abstract.
Dynamical systems generated by iterations of multivariate polynomials with slow degree growth have proved to admit good estimates of exponential sums along their orbits which in turn lead to rather stronger bounds on the discrepancy for pseudorandom vectors generated by these iterations. Here we add new arguments to our original approach and also extend some of our recent constructions and results to more general orbits of polynomial iterations which may involve distinct polynomials as well. Using this construction we design a new class of hash functions from iterations of polynomials and use our estimates to motivate their “mixing” properties.
Subject Classification (2000)
11K45; 11T23; 11T71; 94A60
1. Introduction
1.1. Background
For a system of polynomials in variables over a ring one can naturally define a dynamical system generated by its iterations:
[TABLE]
for each , see [11, 12, 20, 41, 43, 44] and references therein for various aspects of such dynamical systems. In particular, the length and the distribution of elements in the orbits of such dynamical systems, starting from an initial value , have been of primal interest.
In the special case of one linear univariate polynomial over a residue ring or a finite field such iterations are known as linear congruential generators, which have been successully used for decades in Quasi-Monte Carlo methods, see [31, 32]. On the other hand, in cryptographic settings, such linear generators have been the subject of various attacks [8, 13, 21, 25, 27] and thus are not recommended for cryptographic purposes. It should be noted that nonlinear generators have also been attacked [1, 2, 14, 17], but the attacks are much weaker and do not rule out their use for cryptographic purposes (provided reasonable precautions are made). Although linear congruential generators have been used quite sucessfully for Quasi-Monte Carlo methods, their linear structure shows in these applications too and often limits their applicability, see [31, 32].
Motivated by these potential applications, the statistical uniformity of the distribution (measured by the discrepancy) of one and multidimensional nonlinear polynomial generators have been intensively studied in [15, 16, 33, 34, 35, 45]. However, all previously known results are nontrivial only for those polynomial generators that produce sequences of extremely large period, which could be hard to achieve in practice. The reason behind this is that the degree of iterated polynomial systems grows exponentially, and that in all previous results on the general case the saving over the trivial bound has been logarithmic. Moreover, it is easy to see that in the one dimensional case (that is, for ) the exponential growth of the degree of iterations of a nonlinear polynomial is unavoidable. One also expects the same behaviour in the mulitidimensional case for “random” polynomials . However, as it has been shown in [37] for some specially selected polynomials the degree may grow significantly slower, a result that leads to much better estimates of exponential sums, and thus of discrepancy, for vectors generated by these iterations.
Furthermore, it is shown in [36], that in the case when such a polynomial map generates a permutation of the corresponding vector space, one can get better results “on average” over all initial values. It is also noticed in [36] that in fact one can avoid the use of the Weil bound (see [29, Chapter 5]) of exponential sums and achieve a better result with a more elementary argument.
1.2. Our results
Here, as in [36], we continue to study the polynomial systems of [37] and exploit the linearity with respect to one variable and polynomial degree growth with respect to the other variables. This leads to a direct improvement of the results of [37]. This new approach also allows us to consider a slightly more general polynomial dynamical systems, where at each step a different polynomial map can be used, thus extending those of [37]. The argument is based on an elementary identity for exponential sums with linear polynomials and also on counting zeros of multivariate polynomials in finite fields.
We remark that since the Weil bound is not needed anymore, one can certainly obtain analogues of our results for residue rings (although counting the number of solutions of multivariate polynomial congruences may require more efforts than in the finite field settings).
Furthermore, in [36, 37] only the truncated vectors (consisting of components of the total output -dimensional vectors) are investigated. Here we show that in fact the whole output vectors can be studied, however for this we require a very deep result of Bourgain, Glibichuk and Konyagin [6] (for generalisation to residue rings one can also use the results of [3, 4]).
Finally, we propose a construction of a hash function from polynomial maps. Although we make no claims of security or efficiency, we note that our results show that this hash function has “random-like” behaviour.
Hash functions from walks on the set of isogenous elliptic curves generated by low degree isogenies, and their cryptographic applications, are considered in [7, 19]. Alternatively these walks can be described as sequences of rational function transformations on the coefficients of Weierstrass equations on elliptic curves, see [42] for a background. We hope that our results maybe useful for studying further properties of such walks, for example, in showing that the hash function of [7, 19] has sufficiently uniformly distributed outputs and maybe used as a secure pseudorandom number generator.
2. Construction
2.1. Polynomial systems
Let be an arbitrary field. As in [37], we consider a system of polynomials in satisfying the following conditions
[TABLE]
where
[TABLE]
We also impose the condition that each polynomial , , has the unique leading monomial , that is,
[TABLE]
where
[TABLE]
for , .
Given an integral upper triangular matrix
[TABLE]
define the set of all such polynomial systems of the form (1) satisfying the conditions (2) and (3).
For an integer and an integral matrix of the form (4), we consider a sequence of, not necessarily distinct, polynomial systems
[TABLE]
We consider the sequence of polynomials defined by the recurrence relation
[TABLE]
In particular, denotes the identity map.
As in [36, Lemma 1], we have the following characterization of the polynomials , which in turn generalises and refines [37, Lemma 1]. We note that unfortunately in [37] the unique leading monomial condition (3) is given in the form instead of the required , , that is actually used in the proof of [37, Lemma 1].
Lemma 1**.**
Let be a sequence of polynomial systems (5). Then for the polynomials given by (6) we have
[TABLE]
where and
[TABLE]
with some polynomials of degree .
Proof.
Writing we get
[TABLE]
Thus an easy inductive argument implies that
[TABLE]
for some polynomials , where , .
For the asymptotic formulas for the degrees of the polynomials see [37, Lemma 1] where it is given for . We note that in [37] only the case when at each step the same polynomial system is applied but the proof holds for distinct systems without any changes. Indeed, let
[TABLE]
Then the result follows immediately from the recursive formula
[TABLE]
[TABLE]
and means the transposition of the vector , see the proof of [37, Lemma 1] for more details. \sqcap$$\sqcup
2.2. Vector sequences
Given a sequence of polynomial systems (5), we fix a vector and consider the sequence defined by a recurrence congruence modulo a prime of the form
[TABLE]
with some initial values
[TABLE]
We also assume that , , .
Using the following vector notation
[TABLE]
we have the recurrence relation
[TABLE]
In particular, for any and we have
[TABLE]
where the polynomials , , , are given by (6). Clearly the sequence of vectors is eventually periodic with some period . We always assume that the sequence is purely periodic, that is,
[TABLE]
As in [36, 37], we sometimes discard the last component and define the truncated vectors
[TABLE]
However, here we introduce a new argument which allows us sometimes to study full vectors .
3. Exponential Sums and Discrepancy
3.1. Preliminaries
Assume that the sequence generated by (7) is purely periodic with an arbitrary period . For integer vectors and we introduce the exponential sums
[TABLE]
where
[TABLE]
Clearly, if then we simply have , thus the sums are direct generalisations of the sums that have been treated in [36, 37]. Here we show that together with some additional arguments, one can obtain similar results for the sums .
Bounds of these sums can be used to estimate the discrepancy of the corresponding sequences, which is a widely accepted quantitative measure of uniformity of distribution of sequences, and thus good pseudorandom sequences should (after an appropriate scaling) have a small discrepancy, see [31, 32].
Given a sequence of points
[TABLE]
in the -dimensional unit cube it is natural to measure the level of its statistical uniformity in terms of the discrepancy . More precisely,
[TABLE]
where is the number of points of inside the box
[TABLE]
and the supremum is taken over all such boxes, see [9, 26].
Typically the bounds on the discrepancy of a sequence are derived from bounds of exponential sums with elements of this sequence. The relation is made explicit in the celebrated Erdős-Turan-Koksma inequality, see [9, Theorem 1.21], which we present in the following form.
Lemma 2**.**
There exists a constant depending only on such that for any integer and any sequence of points (8) the discrepancy satisfies the following bound:
[TABLE]
where the sum is taken over all integers vectors with .
We always assume that a finite field of elements is represented by the set . So for we always have and thus we can talk about the discrepancy of vectors over after scaling them by .
Throughout the paper, the implied constants in the symbols ‘’ and ‘’ may occasionally, where obvious, depend on the matrix and the integer (and are absolute otherwise). We recall that the notations and are all equivalent to the assertion that the inequality holds for some constant .
3.2. Arbitrary Systems
Here we assume, exactly as in [37], that all polynomial systems (5) are the same, that is . Our next results are a direct improvement of the estimate of [37, Theorem 4] for the sums and also an extension of such bound to more general sums .
We need the following generalisation of the bound on exponential sums of [36, Lemma 2], which avoids using the Weil bound (see [29, Chapter 5]) and which is our main tool in improving the result of [37].
Lemma 3**.**
Let with , then there is a positive integer depending only on and such that for any integer vectors
[TABLE]
with components that are not permutations of each other and integer vector with
[TABLE]
for the polynomial
[TABLE]
where the polynomials are given by (6), we have
[TABLE]
where
[TABLE]
Proof.
Let be the smallest integer such that . By Lemma 1 we have
[TABLE]
for a certain polynomial .
Therefore,
[TABLE]
Recalling the identity
[TABLE]
see [30, Equation (5.9)], we conclude that the sum over the variable is nonzero only if the polynomial
[TABLE]
is zero modulo at .
Performing all trivial cancelations, without loss of generality we can also assume that the vectors and have no common elements. Thus, by Lemma 1, we see that if for a sufficiently large then the polynomial is a nontrivial polynomial modulo of degree . Also, a simple inductive argument shows that a modulo nontrivial polynomial in variables of degree may have only zeros modulo , which concludes the proof. \sqcap$$\sqcup
Theorem 4**.**
Let the sequence be given by (7) for , , with a polynomial system of the form (1) of total degree and such that . Assume that is purely periodic with period . Then for any fixed integer , positive integer and nonzero vector the bound
[TABLE]
holds, where
[TABLE]
and the implied constant depends only on , and .
Proof.
We follow the same argument as in the proof of [37, Theorem 4], however instead of the Weil bound we use now Lemma 3 (and thus we optimise the parameters differently).
In particular, as in [37] we obtain that for any integer ,
[TABLE]
where is the same as in Lemma 3 and
[TABLE]
Using the Hölder inequality we derive (again exactly the same way as in [37])
[TABLE]
For vectors
[TABLE]
which are permutations of each other, we estimate the inner sum trivially as .
For the other vectors, we apply Lemma 3 getting the upper bound for the inner sum. Hence,
[TABLE]
Inserting this bound in (12), we derive
[TABLE]
Choosing
[TABLE]
(and assuming that is large enough, so ), after simple calculations we obtain the desired result. \sqcap$$\sqcup
Using Lemma 2, we derive the following improvement of [37, Theorem 6].
Corollary 5**.**
Let the sequence be given by (7) for , , with a polynomial system of the form (1) of total degree and such that . Assume that is purely periodic with period . Then for any fixed integer , and any positive integer , the discrepancy of the sequence
[TABLE]
satisfies the bound , where
[TABLE]
and the implied constant depends only on , and .
We note that the values of and in Theorem 6 and Corollary 5 improve on the values
[TABLE]
from [37]. In particular, both Theorem 4 and Corollary 5 are nontrivial if with fixed (while the corresponding bounds of [37] are nontrivial only if ).
Theorem 6**.**
Let the sequence be given by (7) for , , with a polynomial system of the form (1) of total degree and such that . Assume that is purely periodic with period . Then for any fixed real , there exist such that for for any positive integer with and nonzero vector the bound
[TABLE]
holds and the implied constant depends only on , and .
Proof.
If then the same argument as in the proof Theorem 6 leads to a fully analogous bound
[TABLE]
Thus for , taking a sufficiently large we obtain the desired estimate.
So it remains to consider the case
[TABLE]
in which case we simply obtain
[TABLE]
A trivial inductive argument shows that
[TABLE]
if and
[TABLE]
if (where and are as in (1)).
We consider the case first in which we obtain
[TABLE]
Clearly, if is the multiplicative order of then we see from (13) that , takes exactly distinct values. Since the truncated vector takes at most values we see that the full vector takes at most values. Thus
[TABLE]
Using the condition we obtain
[TABLE]
In particular (15) implies that
[TABLE]
as otherwise
[TABLE]
and .
We now recall that by the result of [6], for any there exists such that under the condition (15) we have
[TABLE]
which concludes the proof in the case of .
For we recall (14) and then using (11) we derive the result. \sqcap$$\sqcup
Using again Lemma 2, we derive the following generalisation of [37, Theorem 6] (the bound is weaker as we work in the dimension instead of ).
Corollary 7**.**
Let the sequence be given by (7) for , , with a polynomial system of the form (1) of total degree and such that . Assume that is purely periodic with period . Then for any fixed real , there exist such that for any positive integer with the discrepancy of the sequence
[TABLE]
satisfies the bound , where the implied constant depends only on , and .
Certainly one can get stronger and more explicit statements in both Theorem 6 and Corollary 7 if more information about the multiplicative order modulo is available. For example, if it is know that then one can use the bound of Heath-Brown and Konyagin [22] (see also [24, Theorem 3.4])
[TABLE]
For smaller values of , but with one can use the bound of Bourgain and Garaev [5], see also [23].
We remark that it is easy to see that a randomly chosen element is of order with probability as .
Furthermore, it is also well-known that any fixed integer is of multiplicative order
[TABLE]
for all but primes , see [10, 18, 39] for various improvements of this result.
3.3. Permutation Systems
We now consider polynomial systems of the form (5) which permute the elements of . Lidl and Niederreiter [29, 30] call such systems orthogonal polynomial systems, but we here refer to them as permutation polynomial systems.
We fix a sequence , , of polynomial systems (5). For integer vectors and and integers with and , we consider the average values of exponential sums
[TABLE]
where, as before, the polynomials , , are given by (6).
Then using Lemma 1 in the argument of [36] one immediately obtains the following generalisation of the bound of exponential sums from [36].
Theorem 8**.**
Assume that , , are permutation polynomial systems (5), and such that . Then for any positive integers , , and any nonzero vector we have
[TABLE]
where
[TABLE]
Exactly as in [36], this immediately implies a discrepancy bound which holds for almost all initial values . We note that in [36] only the case of when at each step the same polynomial system is applied but the proof, based only on the bound of the sums , holds for distinct polynomial systems without any changes.
Corollary 9**.**
Let and let the sequence be given by (7) with the initial vector of initial values , where , , are permutation polynomial systems (5), and such that . Then for all initial values except at most , and any positive integer , the discrepancy of the sequence
[TABLE]
satisfies the bound
[TABLE]
where
[TABLE]
We now show that the distribution of the full vectors can be studied as well.
Theorem 10**.**
Let be a sequence of permutation polynomial systems (5) and such that , satisfying also the additional condition that the last polynomial in all these systems has the same coefficient of , that is,
[TABLE]
Denote by the period of if and put if . Then for any positive integers , , and any nonzero vector we have
[TABLE]
where
[TABLE]
and is defined as in Theorem 8.
Proof.
Note, as before, that if then the proof of [36, Lemma 4] applies to the sums without any changes. So it remains to consider the case
[TABLE]
in which case we simply obtain
[TABLE]
We have the follwing explicit formulas (see also (13) and (14)):
[TABLE]
if and
[TABLE]
if , where
[TABLE]
We treat first the case . In this case we get:
[TABLE]
Because if and only if , we estimate the first sum trivially as . Furthermore, for , using (11) we see that the second sum simply vanishes.
Thus, for , we obtain
[TABLE]
For the case we recall (17) and using similar arguments easily derive the desired result. \sqcap$$\sqcup
As above, we now get:
Corollary 11**.**
Let and let the sequence be given by (7), where is a sequence of permutation polynomial systems (5) satisfying also the additional condition that the last polynomial in all these systems has the same coefficient of , that is,
[TABLE]
Denote by the period of if and put if . Then for all vectors of initial values except at most , and any positive integer , the discrepancy of the sequence
[TABLE]
satisfies the bound
[TABLE]
where
[TABLE]
and is defined as in Corollary 9.
It is easy to see that under the condition (16) the quantities and are dominated by the terms with and , respectively:
[TABLE]
Finally, we remark that analogues of Theorem 10 and Corollary 11 can be proven also for more general permutation polynomial systems, namely for systems in which the coefficients of in the last polynomial of each system vary in such a way that
[TABLE]
is and are close to each. In fact, if this is guaranteed for and with then the corresponding results for such polynomial systems look identical to those of Theorem 10 and Corollary 11. For examples included such sequences of coefficient as for some element . In this case, the condition (18) is equivalent to the quadratic congruence
[TABLE]
where is the order of which can be easily shown not to have too many solutions with (in particular, if is prime the results are again exactly the same as those of Theorem 10 and Corollary 11).
4. Hash Functions from Polynomial Iterations
4.1. General Construction
In this section we propose a new construction of hash functions based on iterations of polynomial systems studied in the previous sections. This construction is motivated by that of D. X. Charles, E. Z. Goren and K. E. Lauter [7] and in some sense it may be considered as its extension.
Let and be two nonzero integers. Choose a random -bit prime and permutation polynomial systems , , not necessary distinct, defined by (5) and (6).
We also consider a random initial vector .
As in [7], the input of the hash function is used to decide what polynomial system is used to iterate. More precisely, it works as follows given an input bit string , we execute the following steps:
- •
pad with at most zeros on the left to make sure that its length is a multiple of ;
- •
split into blocks , , where , of length and interpret each block as an integer .
- •
Starting at the vector , apply the polynomial systems iteratively obtaining the sequence of vectors .
- •
Output as the value of the hash function (which can also be now interpreted as a binary -bit string).
The above construction is quite similar to that of [7] where , the vectors represent the coefficients of an equation describing an elliptic curve for example, of the Weierstrass equation
[TABLE]
and polynomials maps are associated with isogenies of a fixed degree.
4.2. Collision Resistance
Our belief in collision resistance is essentially based on the same arguments as in [7].
We remark that the initial vector is fixed and in particular, does not depend on the input of the hash function. Furthermore, the collision resistance does not rely on the difficulty of inverting the maps generated by the polynomial systems , which are triangular and actually quite easy to invert. Rather, it is based on the difficulty of making the decision which system to apply at each step when one attempts to back trace from a given output to the initial vector and thus produce two distinct strings and of the same length , with the same output.
Note that for strings of different lengths, say of and , a collision can easily be created. It is enough to take (that is, is obtained from by augmenting it by [math]). If then they lead to the same output. Certainly any practical implementation has to take care of things like this.
We also note that the results of Section 3.3 suggest that the above hash functions exhibit rather chaotic behaviour, which is close to the behaviour of a random function. We certainly make no claims about the cryptographic strength of our construction but we believe that there are enough reasons to investigate it (theoretically and experimentally) more closely.
5. Remarks
In the proof of Lemma 3 we use the estimate on the number of zeros of the polynomial . Perhaps this bound is hard to improve in general, but maybe this can be done for some specially selected polynomial systems. For example, if one can show that is absolutely irreducible then the Lang-Weil bound on the number of zeros of a polynomial in variables, see [28, 40], can be used to derive a better result. Even the case of is already of interest.
Furthermore, although low discrepancy is a very important requirement on any pseudoramdom number generator, this is not the only one. For example, the notion of linear complexity also plays an important role in this area, see [45]. In the case of vector sequences it is natural to consider linear relations with vector coefficients. Namely, we denote by the smallest such that for some -dimensional vectors over where is a non-zero vector, we have
[TABLE]
for all , where denotes the scalar product. Using the same degree argument which is used in the proof of Lemma 3, we see that (19) leads to a nontrivial polynomial equation in variables over of degree . Since for , where as is the period of the purely periodic sequence , the vectors , are pairwise distinct, this yields the estimate
[TABLE]
This can be extended to sequences over arbitrary finite fields. Several more estimates of this type have recently been given in [38]. It would be very interesting to get better bounds which rely on a more refined analysis of (19).
Acknowledgement
The authors are grateful to the Fields Institute for its support and stimulating atmosphere which led to the initiation of this work at the “Fields Cryptography Retrospective Meeting” Toronto, 2009.
During the preparation of this paper, A. O. was supported in part by the Swiss National Science Foundation Grant 121874 and I. S. by the Australian Research Council Grant DP0556431.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] S. R. Blackburn, D. Gomez-Perez, J. Gutierrez and I. E. Shparlinski, ‘Predicting the inversive generator’, Lect. Notes in Comp. Sci. , Springer-Verlag, Berlin, 2898 (2003), 264–275.
- 2[2] S. R. Blackburn, D. Gomez-Perez, J. Gutierrez and I. E. Shparlinski, ‘Predicting nonlinear pseudorandom number generators’, Math. Comp. , 74 (2005), 1471–1494.
- 3[3] J. Bourgain, ‘Exponential sum estimates on subgroups of ℤ q subscript ℤ 𝑞 \mathbb{Z}_{q} , q 𝑞 q arbitrary’, J. Anal. Math. , 97 (2005), 317–355.
- 4[4] J. Bourgain, ‘Exponential sum estimates in finite commutative rings and applications’, J. Anal. Math. , 101 (2007), 325–355.
- 5[5] J. Bourgain and M. Z. Garaev, ‘On a variant of sum-product estimates and explicit exponential sum bounds in prime fields’, Math. Proc. Cambridge Phil. Soc. , 146 (2009), 1–21.
- 6[6] J. Bourgain, A. A. Glibichuk and S. V. Konyagin, ‘Estimates for the number of sums and products and for exponential sums in fields of prime order’, J. Lond. Math. Soc. , 73 (2006), 380–398.
- 7[7] D. X. Charles, E. Z. Goren and K. E. Lauter, ‘Cryptographic hash functions from expander graphs’, J. Cryptology , 22 (2009), 93–113.
- 8[8] S. Contini and I. E. Shparlinski, ‘On Stern’s attack against secret truncated linear congruential generators’, Lect. Notes in Comp. Sci. , Springer-Verlag, Berlin, 3574 (2005), 52–60.
