Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 993 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 993 Bytes

Introduction to Lattice-based Attacks

In the essay different attacks on RSA and ECDSA based on lattice reduction algorithms are discussed.

The attacks implemented in SageMath are:

Script Description
attack_rsa Decrypt ciphertext with small RSA key with e=3 and known padding
attack_rsa_big Decrypt ciphertext with RSA-1024 key with e=3 and known padding
attack_rsa_msb Factor RSA-1024 modulus when MSB of p are known
attack_rsa_roca Implement ROCA attack against RSA-512
attack_ecdsa Implement ECDSA attacks when the nonces are small
attack_ecdsa_msb Recover ECDSA nonces when MSB bits of nonces are known against secp256r1

I also created some scripts to plot lattices and reduction algorithms that can be found in src.