Authors: Marek Sys, Dusan Klinec, Karel Kubicek, Petr Svenda
Primary contact: Marek Sys syso@mail.muni.cz
Abstract: The output of modern cryptographic primitives like pseudorandom generators and block or stream ciphers is frequently required to be indistinguishable from a truly random data. The existence of any distinguisher provides a hint about the insufficient confusion and diffusion property of an analyzed function. In addition to targeted cryptoanalysis, statistical tests included in batteries such as NIST STS, Dieharder or TestU01 are frequently used to assess the indistinguishability property. However, the tests included in these batteries are either too simple to spot the common biases (like the Monobit test) or overly complex (like the Fourier Transform test) requiring an extensive amount of data. We propose a simple, yet surprisingly powerful method called BoolTest for the construction of distinguishers based on an exhaustive search for boolean function(s). The BoolTest typically constructs distinguisher with fewer input data required and directly identifies the function's biased output bits. We analyze the performance on four input generation strategies: counter-based, low hamming weight, plaintext-ciphertext block combination and bit-flips to test strict avalanche criterion. The BoolTest detects bias and thus constructs distinguisher in a significantly higher number of rounds in the round-reduced versions of DES, 3-DES, MD5, MD6 and SHA-256 functions than the state-of-the-art batteries. Finally, we provide a precise interpretation of BoolTest verdict (provided in the form of Z-score) about the confidence of a distinguisher found. The BoolTest clear interpretation is a significant advantage over standard batteries consisting of multiple tests, where not only a statistical significance of a single test but also aggregated decision over multiple, potentially correlated tests, needs to be correctly performed.
Bibtex (regular paper)
@InProceedings{2019-Secrypt2017selected-sys, Author={Marek Sýs and Dušan Klinec and Karel Kubíček and Petr Švenda}, Editor={Obaidat, Mohammad S. and Cabello, Enrique}, Title= {BoolTest: The Fast Randomness Testing Strategy Based on Boolean Functions with Application to DES, 3-DES, MD5, MD6 and SHA-256}, BookTitle={E-Business and Telecommunications}, Year={2019}, Publisher={Springer International Publishing}, Address={Cham}, Pages={123--149}, ISBN={978-3-030-11039-0}, Keywords = {statistical radomness testing, hypothesis testing, boolean function}, }
—-