Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

ECDSA

Direct answer

ECDSA is the elliptic-curve digital signature algorithm, used in TLS certificates, SSH keys and code signing with curves such as P-256 and P-384. It needs a strong random nonce for every signature.

When to use this

Use this when signing with ECDSA in certificates, SSH keys or code signing, and nonce safety matters.

First 30 seconds

1. ECDSA signatures need a unique random/deterministic nonce per signature.

2. Nonce reuse leaks the private key (PS3, wallets).

3. Use RFC 6979 or EdDSA.

4. P-256 with SHA-256.

5. Vetted libraries only.

Operational verification

hash + private key + nonce → signature

Context & applicabilityCommon mistakes · platform/version boundaries
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 this when signing with ECDSA in certificates, SSH keys or code signing, and nonce safety matters.
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 Common mistakes Narrow the fault
  • Reused or biased nonce: leaks the private key (PlayStation 3 case).
  • Assuming every client supports Ed25519 certificates.
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
  • Each signature needs a unique random nonce.
  • Nonce reuse leaks the private key.
  • Deterministic nonces (RFC 6979) avoid that.
Key checks
  • openssl dgst -sha256 -sign ec.pem -out sig.der file — sign
  • openssl dgst -sha256 -verify ec-pub.pem -signature sig.der file — verify
  • Deterministic nonces (RFC 6979) — implementation
ReferenceWhy it matters1 section · depth on demand

How it works

ECDSA signs with elliptic-curve keys. It gives the same security as RSA with much smaller keys and faster signing (a P-256 key is 32 bytes). Each signature needs a fresh secret random value (nonce); RFC 6979 derives it deterministically to avoid bad randomness.

ReferenceImportant terms & boundaries1 section · depth on demand

Key facts

ItemValue
Common curvesP-256, P-384
Security of P-256~ RSA 3072
NeedsUnique random nonce per signature
AlternativeEd25519 (deterministic, EdDSA)
openssl genpkey -algorithm EC -pkeyopt ec_paramgen_curve:P-256 -out key.pem
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 Asymmetric Cryptography → ECDSA. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://csrc.nist.gov/pubs/fips/186-5/final · confidence 94%
Confirmation

Confirm action

Continue?