New Statistical Randomness Tests Based on Length of Runs

Random sequences and random numbers constitute a necessary part of cryptography. Many cryptographic protocols depend on random values. Randomness is measured by statistical tests and hence security evaluation of a cryptographic algorithm deeply depends on statistical randomness tests. In this work we focus on statistical distributions of runs of lengths one, two, and three. Using these distributions we state three new statistical randomness tests. New tests use distribution and, therefore, exact values of probabilities are needed. Probabilities associated runs of lengths one, two, and three are stated. Corresponding probabilities are divided into five subintervals of equal probabilities. Accordingly, three new statistical tests are defined and pseudocodes for these new statistical tests are given. New statistical tests are designed to detect the deviations in the number of runs of various lengths from a random sequence. Together with some other statistical tests, we analyse our tests’ results on outputs of well-known encryption algorithms and on binary expansions of , , and . Experimental results show the performance and sensitivity of our tests.

[1]  Pierre L'Ecuyer,et al.  TestU01: A C library for empirical testing of random number generators , 2006, TOMS.

[2]  Ken Umeno,et al.  Corrections of the NIST Statistical Test Suite for Randomness , 2004, IACR Cryptol. ePrint Arch..

[3]  Shai Halevi,et al.  MARS - a candidate cipher for AES , 1999 .

[4]  Vasilios Katos A randomness test for block ciphers , 2005, Appl. Math. Comput..

[5]  K. Hamano,et al.  A randomness test based on T-codes , 2008, 2008 International Symposium on Information Theory and Its Applications.

[6]  Elaine B. Barker,et al.  A Statistical Test Suite for Random and Pseudorandom Number Generators for Cryptographic Applications , 2000 .

[7]  Angelika Bayer,et al.  A First Course In Probability , 2016 .

[8]  B. Schneier Twofish : A 128-bit block cipher , 1998 .

[9]  Howard M. Heys,et al.  A TUTORIAL ON LINEAR AND DIFFERENTIAL CRYPTANALYSIS , 2002, Cryptologia.

[10]  Ueli Maurer,et al.  A universal statistical test for random bit generators , 1990, Journal of Cryptology.

[11]  A. L. Ruhkin Testing Randomness: A Suite of Statistical Procedures , 2001 .

[12]  Toshinobu Kaneko,et al.  Correction of Overlapping Template Matching Test Included in NIST Randomness Test Suite , 2007, IEICE Trans. Fundam. Electron. Commun. Comput. Sci..

[13]  Onur Koçak,et al.  Evaluation of Randomness Test Results for Short Sequences , 2010, SETA.

[14]  Pedro María Alcover,et al.  A New Randomness Test for Bit Sequences , 2013, Informatica.

[15]  Serpent: A New Block Cipher Proposal , 1998, FSE.

[16]  Lawrence E. Bassham,et al.  Randomness Testing of the Advanced Encryption Standard Finalist Candidates , 2000 .