Challenges › Cryptography

Recover an ECDSA Key

medium · 100 XP · flag · free · solves: 0

A firmware team signed two release notes with the same ECDSA key. Both signatures have the same r. That is a clue to a reused nonce k, not proof. Test the idea and keep only a key that matches the public key.

Files

Notes

Your task

  1. Subtract the two signing equations to get a candidate k, then a candidate d.
  2. Test both sign choices: use s2 and n - s2.
  3. Accept only a d with dG = Q. Confirm it with verify.py.

The private key is short text. Convert d to big-endian bytes and decode them as ASCII. Submit CSEMA{<that text>}.

Tags: learn

Try next