Skip to main content

CNSA 2.0 policy cipher suite with classical and post-quantum algorithms

Project description

Swarmauri Logo

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


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swarmauri_cipher_suite_cnsa20-0.3.0.dev3.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file swarmauri_cipher_suite_cnsa20-0.3.0.dev3.tar.gz.

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev3.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

Hashes for swarmauri_cipher_suite_cnsa20-0.3.0.dev3.tar.gz
Algorithm Hash digest
SHA256 59008d2b25ddb17bb61fc2fa6f86b4b8992d6fc8b3d061f63fca6fae0c51796b
MD5 f1cd62be96d93eec1c3134d9d2a7bf58
BLAKE2b-256 12402c4fe579ed744f7f119003e42f3b3e4645c7cb6ede0da8549b31fd3da9c2

See more details on using hashes here.

File details

Details for the file swarmauri_cipher_suite_cnsa20-0.3.0.dev3-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev3-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

Hashes for swarmauri_cipher_suite_cnsa20-0.3.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0d1fd80ef7139a01c5757f3ed0a5a2dc882504060bbbec75538ad77d53ce85d
MD5 af187d0248e06d33de614c05334f0046
BLAKE2b-256 b5dd80cf94861765f2c63d41f1ca3409e05cee9e1f2c76e2e9953aa9622935c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page