liveBook · Manning

ECDSA

As explained in Real-World Cryptography

ECDSA is an elliptic-curve digital signature algorithm that generates and verifies signatures using elliptic-curve arithmetic.

ECDSA, the Elliptic Curve Digital Signature Algorithm, is an elliptic-curve variant of DSA used to generate and verify digital signatures. It became widely adopted partly because elliptic-curve schemes provide smaller keys than comparable traditional approaches. section 7.3 section 7.3.3

An ECDSA signing flow uses these named components:

  • Generate a random private number x, then compute the public key as [x]G, the scalar multiplication of x with the elliptic-curve base point G. section 7.3.3
  • Hash the message to obtain H(m), and choose a random number k that is unique for this signature. section 7.3.3
  • Compute the signature as two integers, r and s: r is the x-coordinate of [k]G, while s equals k⁻¹(H(m) + xr) modulo p. section 7.3.3
  • Verify using H(m), the public key, and r and s; interoperability requires matching the same applicable standard. section 7.3.3

A practical deployment choice

ECDSA is often paired with NIST’s P-256 curve. Applications must check that their ECDSA implementations use compatible standards, because ISO 14888-3, ANSI X9.62, NIST FIPS 186-2, and IEEE P1363 are not all compatible. Treat signatures as validity proofs, not automatically unique artifacts: signatures may be malleable, and ambiguity about who signed can enable key-substitution attacks. section 7.3.3 section 7.5

How Real-World Cryptography covers it

How deep it goes
Explains key generation, signing inputs, signature formulas, and verification inputs, but does not provide a complete verification derivation.
Examples
Uses the [x]G public-key formula, r-and-s signature calculation, and ECDSA with NIST’s P-256 curve.
What it assumes
Assumes hashes, private and public keys, elliptic-curve groups, scalar multiplication, and a generator or base point.
What you can do after
Evaluate/understand ECDSA key generation, signing inputs, signature values, interoperability requirements, and misuse warnings.
How it connects
Connects ECDSA to DSA, Schnorr signatures, elliptic-curve cryptography, ECDH, EdDSA, and digital signatures.

Also explained in

Compare how 3 books explain ECDSA →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Real-World Cryptography. The section links point to the parts of the book it draws on.