Entropy & Security

Entropy Conditioning Explained

Understand entropy conditioning, why raw physical samples may need processing, and why a conditioner cannot create unpredictability that was not present in its input.

QRNG.io · iQrypto4 min read
  • entropy conditioning

Why raw samples are rarely ideal

Physical measurements reflect both the phenomenon of interest and the measurement system.

Raw samples may contain:

  • bias;
  • correlation;
  • classical noise;
  • quantization artifacts;
  • environmental effects;
  • redundant information;
  • source-specific structure.

That does not mean the source is unusable. It means the system needs an explicit entropy model and processing architecture.

Conditioning is not “making random data random”

A common explanation says a conditioner “cleans up” noisy data. That is intuitive but incomplete.

From a security perspective, the important question is how much entropy enters the conditioner and what can be claimed about the output given the transform and output length.

If the input has only 128 bits of defensible min-entropy, deterministically producing a 1,024-bit string does not create 1,024 bits of entropy.

Compression can be appropriate

One common pattern is to accumulate more raw data than the desired output length and use a suitable conditioning function to produce a shorter output.

This can produce output with strong distributional properties while respecting a conservative entropy budget.

The ratio between raw data and output depends on the source estimate, conditioning construction and assurance target. QRNG.io should not publish universal ratios as if they apply to every implementation.

Vetted and non-vetted conditioning

SP 800-90B includes treatment of conditioning components and the NIST EntropyAssessment implementation provides a conditioning assessment utility with parameters that depend on the type of conditioning function and entropy entering the step.

The terminology is technical. For a public explainer, the key message is that assurance depends on the specific construction and its assumptions, not simply on the label “hashing.”

Relationship to min-entropy

Conditioning sits downstream of entropy estimation.

A defensible design should be able to explain:

  1. the estimated entropy in the raw input;
  2. how much raw input is consumed per conditioned output;
  3. the conditioning function and relevant assumptions;
  4. the resulting claim about the conditioned data;
  5. how the output feeds the wider RBG architecture.

This is entropy accounting, not just signal processing.

Why uniform output is not proof of entropy

A deterministic algorithm can turn a predictable input sequence into output that looks visually complicated or passes many statistical tests.

That is why post-conditioning output alone cannot prove how much unpredictability came from the physical source.

When possible, evaluate raw samples before the conditioner as well as the complete system behavior.

QRNG-specific relevance

QRNG raw measurements can contain a mixture of quantum contribution and classical effects. Conditioning can be part of turning those measurements into usable bits, but the architecture still needs to justify which part of the raw uncertainty is safely attributable to the modeled entropy source.

The phrase “quantum random output” should therefore not hide the source-to-bit pipeline.

Conditioning vs DRBG

Conditioning and deterministic random-bit generation are related but not identical concepts.

A conditioner processes entropy-source data. A DRBG maintains state and expands entropy into output according to a specified deterministic mechanism. In a complete RBG architecture, both can appear at different stages.

This distinction is one reason the SP 800-90A/B/C separation is useful.

Questions for an implementation review

  • Is the conditioner applied to raw source samples or already processed data?
  • What entropy is credited to each input block?
  • How is output length selected?
  • Is the conditioning construction documented?
  • Is the conditioner inside the validated entropy-source boundary or downstream?
  • How are failures handled?
  • Is raw data available for characterization and troubleshooting?

Practical next step

Read What Is Min-Entropy? before interpreting conditioned-output claims, and use How to Test an Entropy Source for the larger workflow.

Sources and further reading

  1. NIST SP 800-90B
  2. NIST IR 8427
  3. NIST EntropyAssessment repository

Primary sources

Part of the QRNG.io quantum randomness knowledge hub.

Keep learning

More on quantum randomness

QRNG.io is an educational hub. Browse the full library, or look up any term you met in this article in the glossary.