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

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev5.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.dev5.tar.gz
Algorithm Hash digest
SHA256 191c59dfaece94bd35be23c3121779a199102e7af137bd19757b437ca0e58c14
MD5 d087ef7076a2636f0c4d7f8d3750c82a
BLAKE2b-256 b0d724a592d430e5602da76cca702a34fa4664bf2cfb010b80059e7a6709856c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.3.0.dev5-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.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 e2601855bcc003bc72e842e1c11a2744f34b2272deb68702408c875bb362867e
MD5 a36e6b3b5e5f2646b9dbdecabd40acf2
BLAKE2b-256 5ecd7c62ddaa7efff88b13f85e4b77d9836e7e5704bb503730fde5e4179efc43

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