Skip to content

janmasarik/RSA-CRT-fault-attack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

RSA-CRT-fault-attack

Detailed attack described here: https://www.cryptologie.net/article/371/fault-attacks-on-rsas-signatures/

Conditions required to make use of this script:

  • validity of signature isn't checked after computation (big implementation error)
  • deterministic (legacy) padding scheme (PKCS #1 v1.5)
  • some fault in one of the CRT computations (eg. bit-flip in prime introduced by attacker)
  • SHA256 is hardcoded

Usage

Sign malicious_message.txt using following parameters

python3 rsa-crt.py public_key.pem message.txt message_sig.sha256 malicious_message.txt

Requires module cryptography (the python package for crypto). If you don't have it yet, install it with

pip3 install cryptography

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages