A New Randomness Test for Bit Sequences

Generating sequences of random numbers or bits is a necessity in many situations (cryptography, modeling, simulations, etc…). Those sequences must be random in the sense that their behavior should be unpredictable. For example, the security of many cryptographic systems depends on the generation of unpredictable values to be used as keys. Since randomness is related to the unpredictable property, it can be described in probabilistic terms, studying the randomness of a sequence by means of a hypothesis test. A new statistical test for randomness of bit sequences is proposed in the paper. The created test is focused on determining the number of different fixed length patterns that appear along the binary sequence. When 'few' distinct patterns appear in the sequence, the hypothesis of randomness is rejected. On the contrary, when 'many' different patterns appear in the sequence, the hypothesis of randomness is accepted.The proposed can be used as a complement of other statistical tests included in suites to study randomness. The exact distribution of the test statistic is derived and, therefore, it can be applied to short and long sequences of bits. Simulation results showed the efficiency of the test to detect deviation from randomness that other statistical tests are not able to detect. The test was also applied to binary sequences obtained from some pseudorandom number generators providing results in keeping with randomness. The proposed test distinguishes by fast computation when the critical values are previously calculated.

[1]  Hirosuke Yamamoto,et al.  A Randomness Test Based on T-Complexity , 2010, IEICE Trans. Fundam. Electron. Commun. Comput. Sci..

[2]  Lluís Ariño Esquema nacional de seguridad , 2010 .

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

[4]  V. S. Stognienko,et al.  A new test for randomness and its application to some cryptographic problems , 2004 .

[5]  Enrique San Millán,et al.  Accelerating secure circuit design with hardware implementation of Diehard Battery of tests of randomness , 2011, 2011 IEEE 17th International On-Line Testing Symposium.

[6]  Werner Schindler,et al.  Random Number Generators for Cryptographic Applications , 2009, Cryptographic Engineering.

[7]  Markus Jakobsson,et al.  A practical secure physical random bit generator , 1998, CCS '98.

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

[9]  Mohammed M. Alani,et al.  Testing Randomness in Ciphertext of Block-Ciphers Using DieHard Tests , 2010 .

[10]  Andrew L. Rukhin,et al.  Approximate entropy for testing randomness , 2000, Journal of Applied Probability.

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

[12]  Stelvio Cimato,et al.  Encyclopedia of Cryptography and Security , 2005 .

[13]  José María Sierra,et al.  The SAC Test: A New Randomness Test, with Some Applications to PRNG Analysis , 2004, ICCSA.

[14]  Alfred Menezes,et al.  Handbook of Applied Cryptography , 2018 .

[15]  Qassim Nasir True Random Bit Generator Using ZCDPLL Based on TMS320C6416 , 2009, Int. J. Commun. Netw. Syst. Sci..

[16]  Henk C. A. van Tilborg,et al.  Encyclopedia of Cryptography and Security, 2nd Ed , 2005 .

[17]  Adrian Kent,et al.  Private randomness expansion with untrusted devices , 2010, 1011.4474.

[18]  A. Guillamón,et al.  Permutations and time series analysis. , 2009, Chaos.

[19]  Vinod Patidar,et al.  A Pseudo Random Bit Generator Based on Chaotic Logistic Map and its Statistical Testing , 2009, Informatica.

[20]  Enrique San Millán,et al.  Cryptographically secure pseudo-random bit generator for RFID tags , 2010, 2010 International Conference for Internet Technology and Secured Transactions.

[21]  Donald E. Eastlake,et al.  Randomness Requirements for Security , 2005, RFC.