mirror of
https://github.com/github/codeql.git
synced 2025-12-18 18:10:39 +01:00
These tests are a copy of the tests in ../cryptodome with Cryptodome replaced by Crypto.
You can run the following command to update the tests:
rm *.py && cp ../cryptodome/*.py . && sed -i -e 's/Cryptodome/Crypto/' *.py
The original pycrypto PyPI package that provided the Crypto Python package has not been updated since 2013, so it is reasonable to assume that people will use the replacement pycryptodome PyPI package that also provides a Crypto Python package and has a (mostly) compatible API.
The pycryptodome functionality is also available in the pycryptodomex PyPI package which provides the Cryptodome Python package.
To ensure our modeling actually covers both ways of importing the same functionality, we have this convoluted test setup.