Skip to content

Instantly share code, notes, and snippets.

@BrodyCai
Created September 10, 2014 09:47
Show Gist options
  • Select an option

  • Save BrodyCai/b748ba80c0d0b5bd2fd8 to your computer and use it in GitHub Desktop.

Select an option

Save BrodyCai/b748ba80c0d0b5bd2fd8 to your computer and use it in GitHub Desktop.
FIx "_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)"
## OS: CentOS 6.2
## Python: 2.6.6
wget https://gmplib.org/download/gmp/gmp-6.0.0a.tar.xz
tar -xJf gmp-6.0.0a.tar.xz
cd gmp-6.0.0
make & make check & make install
wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
tar -xzf ./pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1
./configure --includedir=/usr/local/include/
python setup.py build
pip install ./
@BrodyCai

Copy link
Copy Markdown
Author

@nguyenquan2707

Copy link
Copy Markdown

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment