Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

Nonce

Direct answer

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.

When to use this

Use it when configuring, checking or troubleshooting Nonce in Cryptography.

First 30 seconds

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.

Operational verification

key + unique nonce → encryption

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
Cryptography, PKI and secrets
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCryptography, PKI and secrets
Scope / prerequisiteUse it when configuring, checking or troubleshooting Nonce in Cryptography.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • 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

AlgorithmNonce requirement
AES-GCM96-bit, never repeat per key (random is fine up to ~2^32 messages)
ChaCha20-Poly130596-bit, never repeat; XChaCha20 (192-bit) allows random nonces safely
AES-CBCRandom, unpredictable IV
AES-CTRUnique 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.

ContextConsequence of reuse
AES-GCM / ChaCha20-Poly1305Catastrophic — leaks plaintext relations and allows forging
Stream ciphers (CTR)Keystream reuse reveals plaintext
ECDSA signature noncePrivate key can be recovered
Authentication challengesReplay 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCryptography, PKI and secrets current

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%
Terminology layer

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.

Aliases that resolve here
number used oncecryptographic nonceunique IV value
Embedded reference data

Quick lookup tables

Cryptography → Nonce proof map

Fast scope, effective cryptographic state, verification and closure boundaries for Cryptography → Nonce.

BoundaryEstablishDoes not establish
Scope and intentAsset/data/peer, security property, identity/name, protocol and timeDoes not prove algorithm, key, trust or endpoint correctness
Effective cryptographic stateExact version, algorithm/mode/parameters, key/certificate/path and negotiated resultConfiguration or object presence does not prove correct use
Verification outcomePositive, negative, tamper, expiry/revoke and failure tests correlated with evidenceOne success does not prove every peer, client, path or lifecycle stage
ClosureOriginal operation succeeds; old/unsafe state is retired and regression checks passAdministrative workflow completion alone is not closure
Confirmation

Confirm action

Continue?