Files
codeql/python/ql/test/library-tests/frameworks/crypto
Rasmus Wriedt Larsen 59edd18c34 Python: Move framework test-files out of experimental
This PR was rebased on newest main, but was written a long time ago when all the
framework test-files were still in experimental. I have not re-written my local
git-history, since there are MANY updates to those files (and I dare not risk
it).
2021-04-22 15:23:37 +02: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 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.