This release is a pre-release and may not be stable for production use.
Swarmauri Cipher COSE
Cipher suite that understands CBOR Object Signing and Encryption (COSE) algorithm identifiers and maps them into Swarmauri crypto provider descriptors.
Features
- Accepts both integer and string COSE algorithm identifiers while normalizing to canonical string tokens
- Supplies JWA aliases so cross-protocol code can align crypto operations
- Provides default AEAD tag sizing and metadata for providers that expect it
- Designed to be injected into crypto or signing providers for algorithm policy reuse
Installation
pip
pip install swarmauri_cipher_suite_cose
Poetry
poetry add swarmauri_cipher_suite_cose
uv
To add the dependency to a pyproject.toml managed by uv:
uv add swarmauri_cipher_suite_cose
Or install it into the active environment:
uv pip install swarmauri_cipher_suite_cose
Usage
from swarmauri_cipher_suite_cose import CoseCipherSuite
suite = CoseCipherSuite(name="default-cose")
# Normalize a COSE signing request using the integer identifier for EdDSA
descriptor = suite.normalize(op="sign", alg=-8)
print(descriptor["alg"]) # -> "-8"
print(descriptor["mapped"]["provider"]) # -> "-8"
print(descriptor["params"]["tagBits"]) # -> 128 for COSE AEAD defaults
The resulting descriptor captures the operation, canonical algorithm token, provider mapping, and normalized parameter set. Crypto providers can share the suite to avoid re-implementing COSE policy logic across code paths.
Entry Point
The suite registers under the swarmauri.cipher_suites entry point as
CoseCipherSuite.
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_cose 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 | Provenance | Actions |
|---|---|---|---|---|
| swarmauri_cipher_suite_cose-0.11.0.dev2.tar.gz | 7.5 kB | Without provenance | Details for swarmauri_cipher_suite_cose-0.11.0.dev2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| swarmauri_cipher_suite_cose-0.11.0.dev2-py3-none-any.whl | Python 3 | none | any | Details for swarmauri_cipher_suite_cose-0.11.0.dev2-py3-none-any.whl |
Total release size: 16.0 kB
Release files / swarmauri_cipher_suite_cose-0.11.0.dev2.tar.gz
| Download URL | swarmauri_cipher_suite_cose-0.11.0.dev2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61e313c482568ec787e4371e077f1cc8bb4011add500aeccae732bd4af12ff98
|
|
BLAKE2b-256 checksum How to use checksums |
de0223d7cc95659fa83f800380c061910fc132a9ded15af6bdf917852291fd4d
|
| 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_cose-0.11.0.dev2-py3-none-any.whl
| Download URL | swarmauri_cipher_suite_cose-0.11.0.dev2-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
634e9f244a738382b4b390c1070f3d16303b957874dc7f5545d86ccd8216ea22
|
|
BLAKE2b-256 checksum How to use checksums |
45dfbc0fd7fd33165a2738c2aa1a8f77d5338c56ad169cd58ad21f61439bb375
|
| 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}
|
Security for swarmauri_cipher_suite_cose 0.11.0.dev2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.