Information-theoretic privacy: consolidated formalization · Chapter 11 of 22

7. Entropy accounting for the nonce, projection, and masks

On this page
  1. Nonce generation and modulo reduction
  2. Secret masking entropy
  3. Freshness probability and resource accounting

Nonce generation and modulo reduction

For an independently sampled uniform bb-bit candidate nonce, before publication or duplicate filtering,

H(ν)=H∞(ν)=b.(E1)\mathsf H(\nu)=\mathsf H_\infty(\nu)=b. \tag{E1}

For a discrete variable YY, Shannon entropy means H(Y)=−∑yPr⁡[Y=y]log⁡2Pr⁡[Y=y]\mathsf H(Y)=-\sum_y\Pr[Y=y]\log_2\Pr[Y=y], with zero-probability terms omitted. All entropy quantities below are in bits. Once the full nonce is public, its remaining conditional entropy is H(ν∣ν,G)=0\mathsf H(\nu\mid\nu,G)=0.

Let OO be the complete vector of ring offsets generated by Equation (P1), and let L=lcm⁡(n1,…,nJ)L=\operatorname{lcm}(n_1,\ldots,n_J) be the least common multiple of the ring sizes. For this shared-nonce selector and fixed public increments,

H(O∣ν)=0,H(O)≤min⁡{b,log⁡2L}.(E2)\boxed{ \mathsf H(O\mid\nu)=0, \qquad \mathsf H(O)\le\min\{b,\log_2L\}. } \tag{E2}

Proof. The nonce determines every offset. Two nonce values produce identical offset vectors exactly when their difference is divisible by every ring size, equivalently by LL. There are at most LL distinct vectors and at most 2b2^b candidate inputs. Entropy cannot exceed the logarithm of either count. Additional rounds derived from the same nonce do not supply additional independent randomness.

Modulo reduction need not be uniform. Write 2b=QL+R2^b=QL+R, where QQ is the integer quotient and 0≤R<L0\le R<L is the remainder. For residue v∈{0,…,L−1}v\in\{0,\ldots,L-1\},

Pr⁡[ν mod L=v]={(Q+1)/2b,v<R,Q/2b,v≥R.(E3)\Pr[\nu\bmod L=v]= \begin{cases} (Q+1)/2^b,&v<R,\\ Q/2^b,&v\ge R. \end{cases} \tag{E3}

Proof. Count integers of each residue in 0,…,2b−10,\ldots,2^b-1. The first RR residue classes have one additional representative. If LL divides 2b2^b, the offset vector is uniform on its LL possibilities and has entropy log⁡2L\log_2L. If uniform projection sampling is required when divisibility fails, a separate sampler can draw a sufficiently wide integer, reject values outside a range whose size is a multiple of LL, and then reduce modulo LL. Its distribution and event-uniqueness filtering must be accounted for explicitly.

The worked example has b=4b=4 and L=4L=4. Its projection entropy is two bits, although its candidate nonce entropy is four bits. With a much larger public nonce and the same selector on the same ring, there would still be only four offset sequences. A more elaborate projection selector would require its own output-distribution calculation. The secrecy proof does not require uniform geometry; it requires credential-independent geometry and independent secret masks.

Secret masking entropy

Let MeM_e contain the HH calibration masks and TT data masks for event ee. Before that event’s responses are released, the ideal provisioned distribution satisfies

H(Me∣νe,G,X)=(T+H)log⁡2H.(E4)\boxed{ \mathsf H(M_e\mid\nu_e,G,X)=(T+H)\log_2H. } \tag{E4}

Proof. The vector consists of T+HT+H independent uniform values, each with entropy log⁡2H\log_2H, independent of the conditioning information. These are the secret random resources used by Equation (10). Public nonce bits and visible ring rotations are not additional secret masking entropy.

If a finite secret seed SS deterministically generates a mask vector from public inputs, then

M=F(S,ν,G)⟹H(M∣ν,G)≤H(S∣ν,G)≤H(S).(E5)\boxed{ M=F(S,\nu,G) \quad\Longrightarrow\quad \mathsf H(M\mid\nu,G)\le\mathsf H(S\mid\nu,G)\le\mathsf H(S). } \tag{E5}

The function FF cannot create entropy. A pseudorandom generator can support a computational security argument under its stated assumptions; the independent-mask theorem requires its exact distribution. NIST SP 800-90A describes deterministic random-bit generation, which should be distinguished from fresh entropy collection. NIST SP 800-90A Rev. 1 (opens in a new tab)

If an implementation instead keeps the projection nonce secret and uses it as the sole source for masks, the relevant budget is its residual entropy after observing the projection, H(ν∣G)\mathsf H(\nu\mid G). That implementation must establish mask independence conditional on the visible frames. In the four-bit example, the complete labelled projection alone identifies the nonce residue and leaves only two bits of nonce entropy; it cannot supply four independent secret mask bits conditional on that projection. Publishing the full nonce leaves none. The present example therefore provisions the four masking bits independently.

Freshness probability and resource accounting

For NN independent uniform bb-bit candidate nonce draws, a union bound gives

Pr⁡[any candidate collision]≤min⁡ ⁣{1,N(N−1)2b+1}.(E6)\boxed{ \Pr[\text{any candidate collision}] \le\min\!\left\{1,\frac{N(N-1)}{2^{b+1}}\right\}. } \tag{E6}

There are N(N−1)/2N(N-1)/2 pairs, each equal with probability 2−b2^{-b}. The event service still checks the full identifier against its allocation ledger and rejects duplicates. After duplicate filtering, accepted nonces follow the distribution on the remaining eligible values; Equation (E1) describes the candidate source. Four-bit nonces make this example enumerable and permit at most sixteen distinct event identifiers in one epoch.

An event may also use a persistent counter with guaranteed uniqueness and no random unpredictability. Its security claims must match that choice. This document’s secrecy proof obtains its randomness from the masks, and its one-time acceptance property obtains its uniqueness from the event ledger.

When a whole mask bundle is allocated, the remaining available ideal masking-entropy budget is reduced by (T+H)log⁡2H(T+H)\log_2H. This accounting conservatively retires the entire bundle on completion, cancellation, expiry, or uncertain crash recovery. An implementation may consume additional random-source bits to sample the required uniform values.