Skip to content
uencoder

Entropy and Information Theory Reference

Reference for Shannon entropy, min-entropy, entropy estimation, and security implications.

Entropy Definitions

Shannon entropy H(X) = -sum p(x) log p(x) measures the average information content of a random variable. Min-entropy H_inf = -log(max p(x)) is the relevant measure for cryptographic security as it bounds guess probability. The entropy of a uniform n-bit string is n bits; biased distributions have less. Entropy pools accumulate randomness from multiple sources before extraction. The gap between Shannon and min-entropy matters for security proofs.

Shannon
Average information
H = -sum p log p
min-entropy
Worst-case guess prob
H_inf = -log max p
uniform
Maximum entropy
n bits for n-bit

Estimation and Extraction

Entropy estimation is difficult; no statistical test can prove true randomness. The NIST SP 800-90B tests provide standardized entropy assessment for physical sources. Randomness extractors (von Neumann, Toeplitz) concentrate weakly random input into near-uniform output. A universal hash function can serve as a randomness extractor with appropriate parameters. Conservative entropy estimates are essential for CSPRNG security.

estimation
Hard, no proof possible
statistical tests
extractor
Concentrate weak randomness
universal hash
90B tests
NIST entropy assessment
physical sources

Related tools

References