Skip to content

🔐Introduction to lattice-based attacks in cryptanalysis

Notifications You must be signed in to change notification settings

meowmeowxw/lattice-based-attacks

Repository files navigation

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.

About

🔐Introduction to lattice-based attacks in cryptanalysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published