Turkish Journal of Mathematics
DOI
10.3906/mat-1509-19
Abstract
For cryptographic algorithms, secret keys should be generated randomly as the security of the system depends on the key and therefore generation of random sequences is vital. Randomness testing is done by means of statistical randomness tests. In this work, we show that the probabilities for the overlapping template matching test in the NIST test suite are only valid for a specific template and need to be recalculated for the other templates. We calculate the exact distribution for all 4-bit templates and propose new randomness tests, namely template matching tests. The new tests can be applied to any sequence of minimum length 5504 whereas the overlapping template matching test in the NIST test suite can only be applied to sequences of minimum length $10^6$. Moreover, we apply the proposed tests to biased nonrandom data and observe that the new tests detect the nonrandom behavior of the generator even for a bias of $0.001$, whereas the template matching tests in NIST cannot detect that bias.
Keywords
Cryptography, overlapping template matching test, statistical randomness testing, NIST test suite
First Page
80
Last Page
95
Recommended Citation
SULAK, FATİH
(2017)
"New statistical randomness tests: 4-bit template matching tests,"
Turkish Journal of Mathematics: Vol. 41:
No.
1, Article 9.
https://doi.org/10.3906/mat-1509-19
Available at:
https://journals.tubitak.gov.tr/math/vol41/iss1/9