Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1000 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 1000 Bytes

Automated cryptanalysis for encryptions and digital signature algorithms based on elliptic curves

Implemented attacks:

  • ECDSA:
    • Lattice attacks:
      • Shared prefix nonces (we don't even have to know the prefix, because the script is smart enough to eliminate the unknown, but shared parts)
      • Shared suffix nonces
      • Known least significant bits (nonce leakage)
      • Known most significant bits
    • Nonce reuse attack (the classic PS3 mistake, common challenge)
  • DLP:
    • Pohlig-Hellman attack

Requirements

  • sage
  • unittest
  • pycryptodome
  • hashlib
  • TODO: dockerized solution

Usage

  • ECDSA: python3 main.py -s -i examples/ddc2022_hard.json

Unit tests:

  • Run all unit tests: python test.py

Mathematical background: