Skip to main content

FIPS 203 ML-KEM cipher suite bindings for Swarmauri

Project description

Swarmauri Logo

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

Swarmauri Cipher Suite FIPS 203

Cipher suite bindings for the post-quantum ML-KEM key encapsulation mechanisms standardised in NIST FIPS 203.

Features

  • Enumerates the ML-KEM-512, ML-KEM-768, and ML-KEM-1024 parameter sets
  • Describes NIST security level metadata for downstream policy enforcement
  • Normalises wrap / unwrap requests with provider-oriented descriptors
  • Ships entry-point metadata for seamless Swarmauri component discovery

Installation

pip

pip install swarmauri_cipher_suite_fips203

Poetry

poetry add swarmauri_cipher_suite_fips203

uv

To add the dependency to a pyproject.toml managed by uv:

uv add swarmauri_cipher_suite_fips203

Or install it into the active environment:

uv pip install swarmauri_cipher_suite_fips203

Usage

from swarmauri_cipher_suite_fips203 import Fips203CipherSuite

suite = Fips203CipherSuite(name="mlkem")

# Describe a ML-KEM-768 key encapsulation request
descriptor = suite.normalize(op="wrap", alg="ML-KEM-768")
print(descriptor["constraints"]["nistLevel"])  # -> 3
print(descriptor["mapped"]["provider"])       # -> ml-kem:ML-KEM-768

The suite raises ValueError if a non-ML-KEM algorithm is requested, allowing callers to surface the policy violation immediately.

Entry Point

The suite registers under the swarmauri.cipher_suites entry point as Fips203CipherSuite.

Want to help?

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_fips203-0.11.0.dev1.tar.gz (3.5 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_fips203-0.11.0.dev1.tar.gz.

File metadata

  • Download URL: swarmauri_cipher_suite_fips203-0.11.0.dev1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for swarmauri_cipher_suite_fips203-0.11.0.dev1.tar.gz
Algorithm Hash digest
SHA256 47464c255e3da6705342a1a5facb56db13e4e36ff0a6f4943d842fab169f3986
MD5 9638d2b9f017497b3d1c724c48333d5b
BLAKE2b-256 e9f9ea7235a30aa4587cc3b903eb954269eb1cc62d53fbdd6378b9ee9cc695fe

See more details on using hashes here.

File details

Details for the file swarmauri_cipher_suite_fips203-0.11.0.dev1-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_cipher_suite_fips203-0.11.0.dev1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for swarmauri_cipher_suite_fips203-0.11.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 205292707ddf22baaea5e2ccc976381e7f4f911ed93103191f3b673bc6d363aa
MD5 edff67ad5b9d91e8a5fcb5afad24ff80
BLAKE2b-256 8afddd8a82142f9ad482975a02befa8865d3d08d6f2e7e52197c987e10f48787

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