Use it when configuring, checking or troubleshooting Nonce in Cryptography.
Nonce
A Nonce is a value intended for one use within a defined key/protocol context; some constructions require uniqueness, some unpredictability, and some require both.
1. A nonce must be unique per key (GCM: 96-bit).
2. Reuse with GCM breaks confidentiality and integrity.
3. Use random or counter nonces correctly.
4. Rotate keys before limits.
5. Prefer misuse-resistant modes (AES-GCM-SIV) when uniqueness is hard.
key + unique nonce → encryption
Context & applicabilityCommon mistakes · platform/version boundaries
A nonce value being distinct in one sample does not show uniqueness across restarts, replicas, key reuse or the full key lifetime; secrecy is not its primary property.
Suspicious evidence: fixed GCM nonce, counter rollback, cloned VM state, random space too small, concurrent duplicate, same nonce across protocols/keys incorrectly mapped or nonce omitted from authentication.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
key/context → nonce requirement → counter/random generator and persistent state → cryptographic operation → transmitted/stored nonce → reuse prevention
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Nonce ≠ secret automatically.
- Random-looking ≠ guaranteed unique.
- Unique globally ≠ unique under the actual key/context unless mapped correctly.
- IV ≠ nonce in every construction, though roles can overlap.
- Nonce/IV generation method — random or counter
- Nonce reuse checks — never with same key
- Library defaults — AEAD APIs
ReferenceWhat it is1 section · depth on demand
Nonce rules by algorithm
| Algorithm | Nonce requirement |
|---|---|
| AES-GCM | 96-bit, never repeat per key (random is fine up to ~2^32 messages) |
| ChaCha20-Poly1305 | 96-bit, never repeat; XChaCha20 (192-bit) allows random nonces safely |
| AES-CBC | Random, unpredictable IV |
| AES-CTR | Unique counter blocks |
Protocol nonces (TLS, Kerberos, OIDC nonce) also prevent replay.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A nonce value being distinct in one sample does not show uniqueness across restarts, replicas, key reuse or the full key lifetime; secrecy is not its primary property.
In depth
A nonce ("number used once") is a value that must never repeat for the same key. Encryption modes, authentication protocols and signatures use nonces to make each operation unique and prevent replay.
| Context | Consequence of reuse |
|---|---|
| AES-GCM / ChaCha20-Poly1305 | Catastrophic — leaks plaintext relations and allows forging |
| Stream ciphers (CTR) | Keystream reuse reveals plaintext |
| ECDSA signature nonce | Private key can be recovered |
| Authentication challenges | Replay attacks |
Use libraries that manage nonces correctly (random 96-bit nonces with limited messages per key, counters, or misuse-resistant modes such as AES-GCM-SIV) and never derive nonces from predictable values without care.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Cryptography → Nonce. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://csrc.nist.gov/pubs/fips/197/final · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Cryptography → Nonce proof map
Fast scope, effective cryptographic state, verification and closure boundaries for Cryptography → Nonce.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Asset/data/peer, security property, identity/name, protocol and time | Does not prove algorithm, key, trust or endpoint correctness |
| Effective cryptographic state | Exact version, algorithm/mode/parameters, key/certificate/path and negotiated result | Configuration or object presence does not prove correct use |
| Verification outcome | Positive, negative, tamper, expiry/revoke and failure tests correlated with evidence | One success does not prove every peer, client, path or lifecycle stage |
| Closure | Original operation succeeds; old/unsafe state is retired and regression checks pass | Administrative workflow completion alone is not closure |