Use this when signing with ECDSA in certificates, SSH keys or code signing, and nonce safety matters.
ECDSA
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.
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.
hash + private key + nonce → signature
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Reused or biased nonce: leaks the private key (PlayStation 3 case).
- Assuming every client supports Ed25519 certificates.
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.
- Each signature needs a unique random nonce.
- Nonce reuse leaks the private key.
- Deterministic nonces (RFC 6979) avoid that.
openssl dgst -sha256 -sign ec.pem -out sig.der file— signopenssl 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
| Item | Value |
|---|---|
| Common curves | P-256, P-384 |
| Security of P-256 | ~ RSA 3072 |
| Needs | Unique random nonce per signature |
| Alternative | Ed25519 (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
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 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%