Matematicheskie Voprosy Kriptografii [Mathematical Aspects of Cryptography]
RUS  ENG    JOURNALS   PEOPLE   ORGANISATIONS   CONFERENCES   SEMINARS   VIDEO LIBRARY   PACKAGE AMSBIB  
General information
Latest issue
Archive
Impact factor
Guidelines for authors

Search papers
Search references

RSS
Latest issue
Current issues
Archive issues
What is RSS



Mat. Vopr. Kriptogr.:
Year:
Volume:
Issue:
Page:
Find






Personal entry:
Login:
Password:
Save password
Enter
Forgotten password?
Register


Matematicheskie Voprosy Kriptografii [Mathematical Aspects of Cryptography], 2025, Volume 16, Issue 2, Pages 59–81
DOI: https://doi.org/10.4213/mvk495
(Mi mvk495)
 

Reliability conditions for the two-level testing approach of the NIST SP800-22 test suite

A. A. Serov

Steklov Mathematical Institute of Russian Academy of Sciences, Moscow
References:
Abstract: The two-level approach to evaluating the quality of random number generators, proposed in the NIST SP 800-22 test suite, which consists in calculating the frequencies of $p$-values that fall into $k=10$ equal intervals of $[0,1]$, and checking their distribution for uniformity with the Pearson's chi-square test, was considered. Such approach may increase the reliability of the test, however it is sensitive to the approximation error introduced by the computing of $p$-values. In this paper it is shown that for AES-based sequences the two-level testing approach is not reliable too. The systematic error in the computing of $p$-values depends on the accuracy of approximation the prelimit distributions of statistic by its limit distribution for the sample size $n$ tends to infinity. For a reliable second-level test, this error should be smaller, or at least, approximately equal to $\sigma/N = \frac{1}{k}\sqrt{ \frac{k - 1}N}$, where $\sigma =\sqrt{\frac1k\left(1-\frac1k\right)N}$ is the standard deviation from the mean number of particles $\frac{N}k$ in a bin for the equiprobable scheme of allocation $N$ particles ($p$-values) in $k$ bins. Such heuristic assumptions and carried out experiments suggest that for example in the second-level test of the Frequency test of NIST SP 800-22 test suite with $n=2^{20}$ the number of tested sequences $N$ should not exceed $26000$.
Two-sided estimates of the quantiles of the binomial law are proposed, the combined application of which, with universal inequalities for the distribution function of the binomial law, makes it possible to completely eliminate the systematic error appearing in the Frequency test when determining the numbers of $p$-values found in each sub-interval of the $k$ possible disjoint sub-intervals of $[0,1]$.
Key words: random sequences, pseudorandom sequences, statistical testing, reliability of statistical test, binomial distribution, two-sided estimates.
Received 24.IX.2023
Published: 17.07.2025
Document Type: Article
UDC: 519.233.3+519.719.2
Language: Russian
Citation: A. A. Serov, “Reliability conditions for the two-level testing approach of the NIST SP800-22 test suite”, Mat. Vopr. Kriptogr., 16:2 (2025), 59–81
Citation in format AMSBIB
\Bibitem{Ser25}
\by A.~A.~Serov
\paper Reliability conditions for the two-level testing approach of the NIST SP800-22 test suite
\jour Mat. Vopr. Kriptogr.
\yr 2025
\vol 16
\issue 2
\pages 59--81
\mathnet{http://mi.mathnet.ru/mvk495}
\crossref{https://doi.org/10.4213/mvk495}
Linking options:
  • https://www.mathnet.ru/eng/mvk495
  • https://doi.org/10.4213/mvk495
  • https://www.mathnet.ru/eng/mvk/v16/i2/p59
  • Citing articles in Google Scholar: Russian citations, English citations
    Related articles in Google Scholar: Russian articles, English articles
    Математические вопросы криптографии
    Statistics & downloads:
    Abstract page:158
    Full-text PDF :5
    References:35
    First page:18
     
      Contact us:
     Terms of Use  Registration to the website  Logotypes © Steklov Mathematical Institute RAS, 2026