Statistical Testing of Cryptographic Randomness
Abstract
Security of a cryptographic application is highly related to the quality of randomness of the mechanism used
to encrypt a message. A ciphering process used to encrypt a message is mainly based on the cryptographic
random numbers. There are numerous methods proposed to generate random numbers for cryptographic
applications in the literature. To decide whether a cryptographic random number generator is suitable for
cryptographic applications or not, various statistical randomness tests are introduced. In practice, test
batteries that contain more than one randomness test are constructed and all the tests in a battery are applied
to evaluate the quality of random number generator. In this article, we present a review of test batteries and
recent statistical randomness tests used to evaluate output of a cryptographic random number generator. We
criticize test batteries in the sense of multiple testing problem, highlight some misuses of statistical notions in
hypothesis testing of cryptographic randomness, and discuss potential solutions to multiple testing problem
seen in the test batteries.
Keywords
References
- M.M. Alani, 2010, Testing randomness in ciphertext of block-ciphers using diehard tests, International Journal of Computer Science and Network Security, 10:53–57.
- P.M. Alcover, A. Guillamon, M.C. Ruiz, 2013, A new randomness test for bit sequences, Informatica, 24:339–356.
- B. Walsh, 2006, Multiple comparisons: Bonferroni corrections and false discovery rates. http://nitro.biosci.arizona.edu/workshops/Aarhus2006/pdfs/Multiple.pdf, Lecture notes for EEB 581, [Online; accessed 19-December-2014].
- D. Bogdanov, L. Kamm, S. Laur, V. Sokk, 2014 Rmind: a tool for cryptographically secure statistical analysis. IACR Cryptology, ePrint Archive, 512.
- R.G. Brown, D. Eddelbuettel, D. Bauer, 2014, Dieharder: A random number test suite (version 3.31.1). URL: http://www.phy.duke.edu/ rgb/General/dieharder.php, [Online; accessed 25-February-2014].
- H. Demirhan, N.A. Dolgun, Y. Parlak Demirhan, M.O. Dolgun, 2010, Performance of some multiple comparison tests under heteroscedasticity and dependency, Journal of Statistical Computation and Simulation, 80:1083–1100.
- A. Doganaksoy, C. Calik, F. Sulak, M.S. Turan, 2006, New randomness tests using random walk. In Proceedings of National Cryptology Symposium II, Turkey.
- A. Doganaksoy, F. Sulak, M. Uguz, O. Seker, Z. Akcengiz, 2015, New statistical randomness tests based on length of runs, Mathematical Problems in Engineering, http://dx.doi.org/10.1155/2015/626408.
Details
Primary Language
English
Subjects
Engineering
Journal Section
Review
Publication Date
June 25, 2016
Submission Date
November 23, 2015
Acceptance Date
April 1, 2016
Published in Issue
Year 2016 Volume: 9 Number: 1