Skip to main content

FIPS 140-3 policy cipher suite for Swarmauri

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_cipher_suite_fips1403


Swarmauri Cipher FIPS 140-3

Policy-enforcing cipher suite that restricts operations to NIST FIPS 140-3 validated algorithms and parameter settings.

Features

  • Enforces RSA minimum modulus sizes, approved elliptic curves, and SHA hashes
  • Provides FIPS-aligned defaults for AES-GCM, RSA-OAEP, and RSA-PSS operations
  • Shares structured policy metadata so calling services understand enforced constraints
  • Can be swapped with the JWA or COSE suites for tenants that require FIPS-only cryptography

Installation

pip

pip install swarmauri_cipher_suite_fips1403

Poetry

poetry add swarmauri_cipher_suite_fips1403

uv

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

uv add swarmauri_cipher_suite_fips1403

Or install it into the active environment:

uv pip install swarmauri_cipher_suite_fips1403

Usage

from swarmauri_cipher_suite_fips1403 import FipsCipherSuite

suite = FipsCipherSuite(name="fips-mode")

# Describe a compliant RSA-PSS signing request
descriptor = suite.normalize(op="sign", alg="PS256")
print(descriptor["params"]["saltBits"])   # -> 256 enforced default
print(descriptor["constraints"]["minKeyBits"])  # -> 2048 minimum RSA modulus

If an unsupported algorithm is requested, the suite raises ValueError immediately, making it straightforward for upstream services to surface a policy violation.

Entry Point

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

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_fips1403-0.2.0.dev3.tar.gz (7.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_fips1403-0.2.0.dev3.tar.gz.

File metadata

  • Download URL: swarmauri_cipher_suite_fips1403-0.2.0.dev3.tar.gz
  • Upload date:
  • Size: 7.5 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_fips1403-0.2.0.dev3.tar.gz
Algorithm Hash digest
SHA256 92549e3690efc80c91ab6ffd8b8b59068634c9694fab17c63a422a11bd86bc3d
MD5 f0f0a5ebf06e87d11b12a5de7dc0a735
BLAKE2b-256 8cc637b89f6c65e71a896819737571ed54b2e5a8f650065d6de6962ddcd5d584

See more details on using hashes here.

File details

Details for the file swarmauri_cipher_suite_fips1403-0.2.0.dev3-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_cipher_suite_fips1403-0.2.0.dev3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 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_fips1403-0.2.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 00b0858de5f61f2e891b47ea97119eece9a00b73a0277fe171e606e6569c701c
MD5 4ee34cd8bbf61214667c0da4a6ba4ffc
BLAKE2b-256 bd7fda2440ea292495335ea19ea012bf9615af507bb731611964b9757c7b21aa

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