This release is a pre-release and may not be stable for production use.
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.
Metadata
Release files for swarmauri_cipher_suite_fips1403 0.11.0.dev2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swarmauri_cipher_suite_fips1403-0.11.0.dev2.tar.gz | 7.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swarmauri_cipher_suite_fips1403-0.11.0.dev2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / swarmauri_cipher_suite_fips1403-0.11.0.dev2.tar.gz
| Download URL | swarmauri_cipher_suite_fips1403-0.11.0.dev2.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffca242731f068df7195923061121892f568bc9066d1dd74da1521eaf59d3814
|
|
BLAKE2b-256 checksum How to use checksums |
0910d5ca4fa760c09d866e06cfa2d67a9093b77b0ee9cc8fa91d8188ab679363
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / swarmauri_cipher_suite_fips1403-0.11.0.dev2-py3-none-any.whl
| Download URL | swarmauri_cipher_suite_fips1403-0.11.0.dev2-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ca5f4b6f7f44c87f9d281e8da9f7c6a85e37216d56f994f4fd2433c0ea11fd5
|
|
BLAKE2b-256 checksum How to use checksums |
7aabf567ad4cc45ad715d16bc3ef3c38a43ae4a0cbd87a63ea054e572087b248
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|