Large-scale randomness study of security margins for 100+ cryptographic functions [SECRYPT 2022]

@Article{2022-securitymargins-secrypt,
  Title = {Large-scale randomness study of security margins for 100+ cryptographic functions},
  author = {Dusan Klinec, Marek Sys, Karel Kubicek, Petr Svenda, Vashek Matyas},
  conference = {19th International Conference on Security and Cryptography (SECRYPT 2022)},
  year = {2022},
  language = {eng},
  location = {Lisabon},
  publisher = {INSTICC},
  isbn = {978-989-758-590-6},
  doi = {10.5220/0000163500003283},
  pages = {134--146},
  publisher = {INSTICC}
}

Abstract

The output of cryptographic functions, be it encryption routines or hash functions, should be statistically indistinguishable from a truly random data for an external observer. The property can be partially tested automatically using batteries of statistical tests. However, it is not easy in practice: multiple incompatible test suites exist, with possibly overlapping and correlated tests, making the statistically robust interpretation of results difficult. Additionally, a significant amount of data processing is required to test every separate cryptographic function.

Due to these obstacles, no large-scale systematic analysis of the the round-reduced cryptographic functions w.r.t their input mixing capability, which would provide an insight into the behaviour of the whole classes of functions rather than few selected ones, was yet published. We created a framework to consistently run 414 statistical tests and their variants from the commonly used statistical testing batteries (NIST STS, Dieharder, TestU01, and BoolTest).

Using the distributed computational cluster providing required significant processing power, we analyzed the output of 109 round-reduced cryptographic functions (hash, lightweight, and block-based encryption functions) in the multiple configurations, scrutinizing the mixing property of each one. As a result, we established the fraction of a function’s rounds with still detectable bias (a.k.a. security margin) when analyzed by randomness statistical tests.

Research artifacts (supplementary material)

Configuration scripts and details for experiments replication