Dilithium-py

Latest version: v1.1.0

Safety actively analyzes 723158 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.0

To aid with the development of new standards, new functions were exposed for ML-DSA

- `key_derive(seed) -> (pk, sk)` is a method which creates a key pair given a seed, which is used in cases where a seed rather than expanded key is stored for the private key. Contributed by ounsworth in https://github.com/GiacomoPope/dilithium-py/pull/10
- `prehash_external_mu(self, pk_bytes, m, ctx=b"") -> mu` which given a public key and message, creates a 64 byte value by hashing H(H(pk) | M') which is used internally in signing. This allows for an alternative way to rehash a message for ML-DSA without needing a specialised verification function https://github.com/GiacomoPope/dilithium-py/pull/9. Contributed by GiacomoPope
- `sign_external_mu(self, sk_bytes, external_mu, deterministic=False)` performs signing as in regular ML-DSA but instead of expecting a message and optional context, instead expects the prehashed value mu https://github.com/GiacomoPope/dilithium-py/pull/9. Contributed by GiacomoPope

Additionally, the CI has been changed so that all linting and checks are performed by [ruff](https://astral.sh/ruff) instead of black https://github.com/GiacomoPope/dilithium-py/pull/11. Contributed by GiacomoPope

New Contributors
* ounsworth made their first contribution in https://github.com/GiacomoPope/dilithium-py/pull/10

**Full Changelog**: https://github.com/GiacomoPope/dilithium-py/compare/1.0.2...1.1.0

1.0.2

**Full Changelog**: https://github.com/GiacomoPope/dilithium-py/compare/1.0.1...1.0.2

1.0.1

This update includes a `setup.py` to allow the pip package to be installed for Yocto

1.0.0

Implementation of ML-DSA following the NIST specification FIPS 204. The project is now available on PyPI: https://pypi.org/project/dilithium-py/

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.