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.dev2.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.dev2.tar.gz.

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev2.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.dev2.tar.gz
Algorithm Hash digest
SHA256 61bfcbbc72666e7d7efe4916667df6bac67106b821bc7f0e72398838db38ca8b
MD5 2073248f209996e17ac1aea88112fad7
BLAKE2b-256 c98a7821f6a77011fbae7285ec5feafecfd154785b6e83e2aac59b7fa06b7af1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev2-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.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ce75177de8669953d0d2859be1af9655bd69b70259592534a892ec8b695dd05
MD5 8869728581f217c9933b20c9ff258374
BLAKE2b-256 a4f464f5977a20d2047bbc86d0ccef9d6d49529f904d524a7b0cfcc0996bbed5

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