Nonce Scope and Durable Uniqueness

Design uniqueness across concurrent senders and restarts by specifying exactly which key and sender state define a nonce domain.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. A nonce is usually public and narrowly scoped
  2. Plan for restart and key rotation

A nonce is usually public and narrowly scoped

A nonce need not be secret. For a nonce-based AEAD that requires uniqueness, the same key must not seal two records with the same nonce. A counter can meet this goal within one stable sender allocation. If two workers share a key and each starts at zero, their apparent local uniqueness does not imply uniqueness of the key’s full history.

Plan for restart and key rotation

Allocate disjoint nonce ranges or use appropriately separate keys through documented derivation. Record sufficient state durably before reusing a counter schedule across restarts. With independently random \(b\)-bit nonces, the probability of any duplicate among \(q\) draws is at most \(\binom q2/2^b\), so a protocol’s usage limits matter. A new key has a new domain under its construction. Authenticated encryption specifies the interface. Key derivation clarifies when two key purposes really have separate keys.[1][2]

References

  1. IETF, RFC 5116: An Interface and Algorithms for Authenticated Encryption ↩
  2. Dan Boneh and Victor Shoup, A Graduate Course in Applied Cryptography ↩