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

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.2.0.dev5.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0.dev5.tar.gz
Algorithm Hash digest
SHA256 d3c3c246e52a563e9e1607828d27b48b41caa1a34457cc0233800a0419c4a8f7
MD5 b4aa3f314f398493f883f057eb05cdd3
BLAKE2b-256 00add4f6bca8efcbe3118f4bf4bd61b741d54be43561324158129434f7d04a46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_cipher_suite_cnsa20-0.2.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.4 {"installer":{"name":"uv","version":"0.10.4","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.2.0.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 d95bb3e565c8707588f50e25a49988176c7d3346a39fe272e3a2f4d52450bc76
MD5 37a4d95a5b53a27e3c46cb4a5d703ba8
BLAKE2b-256 9aeae20df8fb910ea3073f9d11f0fc092ba7fceaab436a4dab851263aac66791

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