AWS Nitro Secure Module (NSM) interface in native Python
This library offers a native Python interface to the /dev/nsm device in AWS Nitro Enclaves. This is an updated version from aws-nsm-interface.
Installation
To install aws_nsm_interface_verifiably, run:
pip install aws_nsm_interface_verifiably
Requirements
- To install: python>=3.6
- To run: a Python application running in an AWS Nitro Enclave
Quickstart
import base64
import aws_nsm_interface_verifiably
file_desc = aws_nsm_interface_verifiably.open_nsm_device()
rand_bytes = aws_nsm_interface_verifiably.get_random(file_desc, 12) # Get 12 random bytes from /dev/nsm
print(rand_bytes)
public_rsa_key = b'1234' # An RSA public key exported as DER
attestation_doc = aws_nsm_interface_verifiably.get_attestation_doc(
file_desc,
public_key=public_rsa_key
)['document']
attestation_doc_b64 = base64.b64encode(attestation_doc).decode('utf-8')
aws_nsm_interface_verifiably.close_nsm_device(file_desc)
# Use `attestation_doc_b64` in your AWS KMS Decrypt call
Metadata
Release files for aws-nsm-interface-verifiably 1.0.1
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 |
|---|---|---|---|---|
| aws-nsm-interface-verifiably-1.0.1.tar.gz | 4.2 kB | Without provenance | Details for aws-nsm-interface-verifiably-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aws_nsm_interface_verifiably-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for aws_nsm_interface_verifiably-1.0.1-py3-none-any.whl |
Total release size: 10.0 kB
Release files / aws-nsm-interface-verifiably-1.0.1.tar.gz
| Download URL | aws-nsm-interface-verifiably-1.0.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e28b97bc2f001ee982504489330ba305ad4beb9e5a049f27e3e177fa9df7213
|
|
BLAKE2b-256 checksum How to use checksums |
14735bebf29c27bf0dd706f2193a701357dccb9994e031585640fe1c0f3745d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/22.2.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
|
Release files / aws_nsm_interface_verifiably-1.0.1-py3-none-any.whl
| Download URL | aws_nsm_interface_verifiably-1.0.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
23c34196ef6a5d6f33e3af89a897c994d52298b9d9acf589e95692f136e2b685
|
|
BLAKE2b-256 checksum How to use checksums |
46b382c0cfd78df8abcfc20ac8921c15fc8744540d60798fdbdefa2db4d74fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.63.0 importlib-metadata/4.10.1 keyring/22.2.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.5
|
Security for aws-nsm-interface-verifiably 1.0.1
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.