Skip to content
maple3142Public

About

No description, website, or topics provided.

Resources

Stars

71 stars

Watchers

1 watching

Forks

Latest commit

 

History

32 Commits

Folders and files

Repository files navigation

lll_cvp

A library for solving linear (in)equalities using lattice reduction algorithms. See example.sage for what it can do. You are also welcome to read and understand the code in lll_cvp.py.

This library was previously maintained here.

Installation

git clone https://github.com/maple3142/lll_cvp
cd lll_cvp
# ensure you are in an Python environment with sage installed
# venv, conda, etc.
pip install -e .

or you can just download lll_cvp.py and put it in your project.

Flatter

It is recommended to have flatter (a faster LLL) installed in PATH and this library will automatically use it if available.

About this library

This is heavily inspired by Inequality Solving with CVP at start, but also incorporated a lot of tricks I learned from solving CTF challenges.

This library only focus on solving constrained and underdetermined linear equations, so it doesn't have anything related to Coppersmith's method. Please refer to the following libraries if you need them:

Technically, solve_underconstrained_equations_general can handle non-linear equations by linearizing them, but Coppermith's method works much better in most cases.

There are also some libraries that have some overlap with this library:

About

No description, website, or topics provided.

Resources

Stars

71 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages