Nonce generation and modulo reduction
For an independently sampled uniform -bit candidate nonce, before publication or duplicate filtering,
For a discrete variable , Shannon entropy means , with zero-probability terms omitted. All entropy quantities below are in bits. Once the full nonce is public, its remaining conditional entropy is .
Let be the complete vector of ring offsets generated by Equation (P1), and let be the least common multiple of the ring sizes. For this shared-nonce selector and fixed public increments,
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 . There are at most distinct vectors and at most 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 , where is the integer quotient and is the remainder. For residue ,
Proof. Count integers of each residue in . The first residue classes have one additional representative. If divides , the offset vector is uniform on its possibilities and has entropy . 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 , and then reduce modulo . Its distribution and event-uniqueness filtering must be accounted for explicitly.
The worked example has and . 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 contain the calibration masks and data masks for event . Before that event’s responses are released, the ideal provisioned distribution satisfies
Proof. The vector consists of independent uniform values, each with entropy , 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 deterministically generates a mask vector from public inputs, then
The function 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
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, . 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 independent uniform -bit candidate nonce draws, a union bound gives
There are pairs, each equal with probability . 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 . 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.