January 2007
Beginner
544 pages
14h 21m
English
The National Institution of Standards (NIST) proposed a number of statistical tests [NIST, 1994] when they solicited a successor to the Data Encryption Standard in 1996.
If a cryptographic algorithm generates a random number generator, the algorithm's output of 20,000 consecutive output bits y0, y1,…, y19999 must pass the following four statistical tests.

Count the number fi of (column) vectors (x0,j, x1,j, x2,j, x3,j) for which i = 8x0,j + 4x1,j + 2x2,j + x3,j and evaluate the χ2-value
![]()
The test is passed if 1.03 < χ2 < 57.4.
TABLE 5.1 Intervals for the Runs Test
| Length of Run | Interval |
| 1 | 2267–2733 |
| 2 | 1079–1421 |
| 3 | 502–748 |
| 4 | 223–402 |
| 5 | 90–223 |
| 6+ | 90–223 |

The test is passed if the number of runs Rℓ[i] of i(i = 0, 1) lies in the intervals listed in Table 5.1.
Read now
Unlock full access