CNSA 2.0 policy cipher suite with classical and post-quantum algorithms
Project description
Swarmauri Cipher Cnsa20
CNSA 2.0-aligned cipher suite skeleton for high-assurance deployments.
Features
- Enumerates classical (ES384/PS384) and post-quantum (ML-DSA, SLH-DSA, ML-KEM) selections from the CNSA 2.0 profile
- Surfaces NIST security level metadata for ML-DSA, SLH-DSA, and ML-KEM algorithms to support downstream policy checks
- Provides consistent normalization across signing, encryption, and key encapsulation operations with JWA and provider dialect mappings
Installation
pip
pip install swarmauri_cipher_suite_cnsa20
Poetry
poetry add swarmauri_cipher_suite_cnsa20
uv
To add the dependency to a pyproject.toml managed by uv:
uv add swarmauri_cipher_suite_cnsa20
Or install it into the active environment:
uv pip install swarmauri_cipher_suite_cnsa20
Usage
from swarmauri_cipher_suite_cnsa20 import Cnsa20CipherSuite
suite = Cnsa20CipherSuite(name="demo-cnsa20")
# Inspect the available operations and defaults
print(suite.features()["ops"].keys())
# Normalize a post-quantum signing request
descriptor = suite.normalize(op="sign", alg="ML-DSA-65")
print(descriptor["alg"], descriptor["constraints"]["nistLevel"]) # -> 3
The suite returns normalized descriptors that include canonical algorithm names, per-dialect mappings, and policy metadata so providers can focus on execution.
Entry Point
The suite registers under the swarmauri.cipher_suites entry point as Cnsa20CipherSuite.
Contributing
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_cnsa20-0.3.0.dev4.tar.gz.
File metadata
- Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev4.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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 |
01d80f14ef93d72072f8545869b76bd3a7e102951e515e065398da95aaa9a6fb
|
|
| MD5 |
b29acdc88271917ea3557527ccd580ce
|
|
| BLAKE2b-256 |
08a8147af955381565cad916681df0e30a5ee8de97503554f349e57382efbdd2
|
File details
Details for the file swarmauri_cipher_suite_cnsa20-0.3.0.dev4-py3-none-any.whl.
File metadata
- Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev4-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","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 |
be1646d3e69a77408b1967bea1cb8d378c24c5d41f91aa42859ab75c048505ff
|
|
| MD5 |
5336c6269934ca7b89fd8c3611d26418
|
|
| BLAKE2b-256 |
ae1a46721238abc224b5a3099218bae877e0cba59bdd4457b961d2fc1a88d9d1
|