# Length–Weight Distribution of Non-Zero Elements in Randomized Bit Sequences

**Authors:** Christoph Lange, Andreas Ahrens, Yadu Krishnan Krishnakumar, Olaf Grote

PMC · DOI: 10.3390/s25123825 · Sensors (Basel, Switzerland) · 2025-06-19

## TL;DR

This paper introduces a new method to analyze randomness in bit sequences, focusing on cybersecurity applications and comparing different cryptographic algorithms.

## Contribution

A novel gap-based burst analysis technique is introduced to detect deviations in the randomness of cryptographic outputs.

## Key findings

- Key-encapsulation algorithms like CRYSTALS-Kyber show lower randomness than digital signature algorithms like CRYSTALS-Dilithium.
- The proposed method effectively validates the randomness level of different sequence-generation techniques.
- The approach is tested using the CRYSTALS cryptographic suite for verification.

## Abstract

Randomness plays an important role in data communication as well as in cybersecurity. In the simulation of communication systems, randomized bit sequences are often used to model a digital source information stream. Cryptographic outputs should look more random than deterministic in order to provide an attacker with as little information as possible. Therefore, the investigation of randomness, especially in cybersecurity, has attracted a lot of attention and research activities. Common tests regarding randomness are hypothesis-based and focus on analyzing the distribution and independence of zero and non-zero elements in a given random sequence. In this work, a novel approach grounded in a gap-based burst analysis is presented and analyzed. Such approaches have been successfully implemented, e.g., in data communication systems and data networks. The focus of the current work is on detecting deviations from the ideal gap-density function describing randomized bit sequences. For testing and verification purposes, the well-researched post-quantum cryptographic CRYSTALS suite, including its Kyber and Dilithium schemes, is utilized. The proposed technique allows for quickly verifying the level of randomness in given cryptographic outputs. The results for different sequence-generation techniques are presented, thus validating the approach. The results show that key-encapsulation and key-exchange algorithms, such as CRYSTALS-Kyber, achieve a lower level of randomness compared to digital signature algorithms, such as CRYSTALS-Dilithium.

## Full-text entities

- **Diseases:** DU (MESH:D021922), IID (MESH:D020243), CRYSTALS (MESH:D000070657), injury to (MESH:D014947), BOP (MESH:C536741)
- **Species:** Homo sapiens (human, species) [taxon 9606]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12196664/full.md

## Figures

22 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12196664/full.md

## References

60 references — full list in the complete paper: https://tomesphere.com/paper/PMC12196664/full.md

---
Source: https://tomesphere.com/paper/PMC12196664