ECDH-ES+A128KW based multi-recipient encryption provider for Swarmauri
Project description
Swarmauri MRE Crypto ECDH-ES+A128KW
ECDH-ES+A128KW based multi-recipient encryption provider implementing the IMreCrypto contract.
- ECDH-ES key agreement per recipient
- AES-128 Key Wrap of a shared content-encryption key
- AES-128-GCM payload encryption with optional AAD
Installation
pip install swarmauri_mre_crypto_ecdh_es_kw
Usage
from cryptography.hazmat.primitives.asymmetric import ec
from swarmauri_mre_crypto_ecdh_es_kw import EcdhEsA128KwMreCrypto
crypto = EcdhEsA128KwMreCrypto()
sk = ec.generate_private_key(ec.SECP256R1())
pk = sk.public_key()
ref = {"kid": "1", "version": 1, "kind": "cryptography_obj", "obj": pk}
env = await crypto.encrypt_for_many([ref], b"secret")
pt = await crypto.open_for({"kind": "cryptography_obj", "obj": sk}, env)
Entry point
The provider is registered under the swarmauri.mre_cryptos entry-point as EcdhEsA128KwMreCrypto.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_mre_crypto_ecdh_es_kw-0.2.0.dev3.tar.gz.
File metadata
- Download URL: swarmauri_mre_crypto_ecdh_es_kw-0.2.0.dev3.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd08fa4f6948713e7968eb697aa5b7e709acbb01d325d11d7031ea53d8599088
|
|
| MD5 |
1828cc9fa499a0939a8b231f7a507940
|
|
| BLAKE2b-256 |
ed1fdcef162555ecff97681d71dd411ea80eb52aacfe961660f439102fa42183
|
File details
Details for the file swarmauri_mre_crypto_ecdh_es_kw-0.2.0.dev3-py3-none-any.whl.
File metadata
- Download URL: swarmauri_mre_crypto_ecdh_es_kw-0.2.0.dev3-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
733f7a8134664e53ebb243b538bec29b16809a6c509b821b26ce0ef01556ba44
|
|
| MD5 |
fd52dc692da713f87b198fbd13768e77
|
|
| BLAKE2b-256 |
3253f1ce520c77697f72899ae4ae39698f7c9811c2b30aff3fae120cf370f467
|