To use the SP800-90B_EntropyAssessment repository to assess the randomness of a series of bits, follow these steps based on the provided context:
1. Install the necessary dependencies
Before running the tests, ensure your system has the required dependencies installed. The repository uses several libraries and requires a C++11-compatible compiler with OpenMP support.
Refer to the installation wiki for more distribution-specific instructions.
2. Build the repository
Navigate to the repository root directory and build the tools using the provided Makefile:
bash
make
This will generate the binaries for different randomness tests, including ea_iid, ea_non_iid, and others.
3. Prepare your data
The randomness tests require a binary file containing your data. Your data should be:
A series of bits packed into bytes (e.g., 0 or 1 → 8 bits per byte).
At least 1,000,000 samples (1,000,000 bits minimum).
If your data is not in binary format, you will need to convert it into a binary file.
4. Run the appropriate test
The repository provides tools to assess randomness for IID (independent and identically distributed) and non-IID data. Most entropy sources are non-IID, so start with the ea_non_iid tool unless you specifically know your data is IID.
Run Non-IID Tests
Use the following command to run the non-IID tests: