Skip to main content
QUICK REVIEW

[Paper Review] Corrections of the NIST Statistical Test Suite for Randomness

Song-Ju Kim, Ken Umeno|ArXiv.org|Jan 27, 2004
Cellular Automata and ApplicationsComputer Science7 references54 citations
TL;DR

This paper identifies and corrects four critical errors in the NIST Statistical Test Suite for Randomness, specifically in the Discrete Fourier Transform (DFT) and Lempel-Ziv Compression tests. It proposes revised thresholds and variance estimates based on empirical data from SHA1 and CA-based PRBGs, demonstrating improved P-value uniformity and resolving flaws that invalidated prior test results, particularly for AES candidate evaluations.

ABSTRACT

It is well known that the NIST statistical test suite was used for the evaluation of AES candidate algorithms. We have found that the test setting of Discrete Fourier Transform test and Lempel-Ziv test of this test suite are wrong. We give four corrections of mistakes in the test settings. This suggests that re-evaluation of the test results should be needed.

Motivation & Objective

  • To identify and correct erroneous test settings in the NIST Statistical Test Suite for randomness, particularly in the DFT and Lempel-Ziv tests.
  • To address the issue of non-uniform P-values in the Lempel-Ziv test caused by discrete distribution effects and asymmetric variance.
  • To improve the reliability of statistical testing for pseudorandom bit generators (PRBGs), especially in cryptographic evaluations like those for AES candidates.
  • To provide empirically derived, algorithm-agnostic distribution parameters for the Lempel-Ziv test that better reflect true randomness characteristics.
  • To advocate for re-evaluation of past test results using the corrected settings, as original results may be invalid due to flawed thresholds and variance estimates.

Proposed method

  • Re-evaluated the DFT test by identifying incorrect threshold T = √(3n) and replacing it with T = √(2.995732274n), derived from empirical data.
  • Revised the theoretical variance in the DFT test from npq/2 to npq/4, based on observed deviations from normality in empirical distributions.
  • Identified that the Lempel-Ziv test used an oversimplified normal distribution, leading to poor P-value uniformity, and replaced it with an asymmetric normal distribution with distinct left and right variances.
  • Calculated new mean μ = 69588.09 and variances σ²_L = 75.574336518 and σ²_R = 72.42178447 for n = 10⁶, based on SHA1 and CA5 PRBG outputs.
  • Replaced the standard uniformity test of P-values with a histogram-based χ² test using empirical bin frequencies from SHA1 and CA5 data, improving detection of non-uniformity.
  • Validated corrections using 10⁶ samples of 10⁶-bit sequences from SHA1 and CA5, showing marked improvement in P-value uniformity compared to original NIST settings.

Experimental results

Research questions

  • RQ1Why do the P-values from the Lempel-Ziv test fail to achieve uniformity despite using a theoretical normal distribution?
  • RQ2What are the correct threshold and variance parameters for the DFT test that accurately reflect the distribution of test statistics under true randomness?
  • RQ3How can the Lempel-Ziv test be restructured to account for the asymmetric and discrete nature of the number-of-words distribution?
  • RQ4To what extent do the original NIST test settings compromise the validity of randomness evaluations, especially for cryptographic PRBGs like those used in AES candidate analysis?
  • RQ5Can empirical data from secure PRBGs like SHA1 be used to define more accurate, algorithm-agnostic distribution parameters for statistical tests?

Key findings

  • The DFT test threshold was incorrectly set at √(3n); the corrected value is √(2.995732274n), which better aligns with empirical distribution quantiles.
  • The DFT test variance was erroneously set at npq/2; the corrected value is npq/4, significantly improving the accuracy of the theoretical distribution.
  • The Lempel-Ziv test used a symmetric normal distribution, but empirical data revealed a pronounced asymmetry, with left and right variances differing by 4.3% (σ²_L = 75.57 vs. σ²_R = 72.42).
  • The original Lempel-Ziv test failed to achieve P-value uniformity due to limited discrete output values, with only 2–3 distinct P-values per central bin, invalidating the test's reliability.
  • By redefining uniformity testing as a histogram-based χ² test using empirical bin frequencies from SHA1 and CA5, the method achieved significantly improved P-value uniformity, as shown in Figure 8.
  • The corrected test settings demonstrate that prior evaluations of AES candidates using the original NIST suite may be invalid, necessitating re-evaluation with the corrected parameters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.