FIPS 204 ML-DSA cipher suite bindings for Swarmauri
Project description
Swarmauri Cipher Suite FIPS 204
ML-DSA (Dilithium) signature suite aligned with the requirements of NIST FIPS 204.
Features
- Supports ML-DSA-44, ML-DSA-65, and ML-DSA-87 parameter sets
- Provides NIST security level metadata for policy-aware services
- Normalises post-quantum signing requests using provider dialect mappings
- Integrates with Swarmauri discovery via the
swarmauri.cipher_suitesentry point
Installation
pip
pip install swarmauri_cipher_suite_fips204
Poetry
poetry add swarmauri_cipher_suite_fips204
uv
To add the dependency to a pyproject.toml managed by uv:
uv add swarmauri_cipher_suite_fips204
Or install it into the active environment:
uv pip install swarmauri_cipher_suite_fips204
Usage
from swarmauri_cipher_suite_fips204 import Fips204CipherSuite
suite = Fips204CipherSuite(name="mldsa")
# Prepare a ML-DSA-65 signing descriptor
descriptor = suite.normalize(op="sign", alg="ML-DSA-65")
print(descriptor["constraints"]["nistLevel"]) # -> 3
print(descriptor["mapped"]["provider"]) # -> ml-dsa:ML-DSA-65
Unsupported algorithms raise ValueError, signalling the policy violation to
callers.
Entry Point
The suite registers under the swarmauri.cipher_suites entry point as
Fips204CipherSuite.
Want to help?
If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_cipher_suite_fips204-0.11.0.dev1.tar.gz.
File metadata
- Download URL: swarmauri_cipher_suite_fips204-0.11.0.dev1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8c03f8faac9fb4339f9d26ca38903d2b06acc2df39b79467b3aa82696fe1c4f
|
|
| MD5 |
37666c14c09480dbeaae4dcd354468e4
|
|
| BLAKE2b-256 |
07bc3059bbdb5fa5fb7c37678179b3393c2bb5f9f0163e3d674013506ec3a2e1
|
File details
Details for the file swarmauri_cipher_suite_fips204-0.11.0.dev1-py3-none-any.whl.
File metadata
- Download URL: swarmauri_cipher_suite_fips204-0.11.0.dev1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9af6e07026c17a928935469519b5b5343a38793bfa0815935ce939bfe078b60d
|
|
| MD5 |
d24454d3c5f67a0db6f3f86e2c8e5274
|
|
| BLAKE2b-256 |
7d3570af633722f1f7efddcfc1f9ed2737f408d3b186093a09c013023fd3ffcd
|