Hamming-weight leakage of a uniform bit string
ID: hamming-weight-leakage-of-a-uniform-bit-string
Let be uniformly distributed over the bit strings of length , and disclose only its Hamming weight , the number of one-bits. This is a deterministic cryptographic leakage function. Its consequences depend on the observed weight, even though has only possible values. A permitted disclosure belongs in the security model; the existence of that model does not establish that the disclosure is harmless.[ref]
Universally Composable Security: A Tutorial by Ran Canetti. PDF pp. 25 and 33, permitted leakage and message-length disclosure
There are strings of weight . Hence has a binomial distribution, and conditional probability givesfor each compatible string . The optimal complete-string guess therefore succeeds with probability after that observation. For , observing leaves six equally likely strings; observing identifies
0000 exactly.Averaging over disclosed weights yieldscompared with before disclosure. For four bits this changes to . The worst conditional outcome has success probability one. An average guarantee and a guarantee for every observation are consequently different claims.
The information entropy calculation answers another question. Since is determined by , the mutual information satisfies andFor , bits and bits. These entropy values are not obtained by taking the logarithm of the average guessing probability. All calculations here assume the uniform prior and no additional correlated observation.
New to topics? Read the docs here!