Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_cipher_suite_cnsa20 Discord

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.

Metadata

Release files for swarmauri_cipher_suite_cnsa20 0.11.0.dev2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swarmauri_cipher_suite_cnsa20 0.11.0.dev2
File Size Uploaded
swarmauri_cipher_suite_cnsa20-0.11.0.dev2.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for swarmauri_cipher_suite_cnsa20 0.11.0.dev2
File Interpreter ABI Platform
swarmauri_cipher_suite_cnsa20-0.11.0.dev2-py3-none-any.whl Python 3 none any Details

Total release size: 17.2 kB

Release files / swarmauri_cipher_suite_cnsa20-0.11.0.dev2.tar.gz

Download URL swarmauri_cipher_suite_cnsa20-0.11.0.dev2.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a07658c41cec22ae0bda826d38136191dcaf4a49aedab4de41b1e2c97ece8000
BLAKE2b-256 checksum
How to use checksums
0ca8e7ab0a771f071ff668e1c06ba13698c2a82200a3d95032dd3983c162e704
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / swarmauri_cipher_suite_cnsa20-0.11.0.dev2-py3-none-any.whl

Download URL swarmauri_cipher_suite_cnsa20-0.11.0.dev2-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f7a151aab9e9811a4678316217de595bd032714b7fc708b7eb3964090a2f8f3
BLAKE2b-256 checksum
How to use checksums
a686c230c447630234bda662f43da7bc7ac6c5b4c049e032d718cf71f451be28
Upload date
Uploaded using Trusted Publishing?
What is 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}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page