mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Official names are SHA3-224, SHA3-256, SHA3-384, SHA3-512 as per https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
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.