Python chryptography keys implemented on to the PKCS11 interface
Project description
cryptography is a package which provides cryptographic recipes and primitives to Python developers. Their goal is for it to be your “cryptographic standard library”.
This library uses PyKCS11 to implement comunication to the PKCS11 device (smartcard,…). As PKCS11 devices need an open session to work with them, this library provides context managers to execute tasks provided by pyca/cryptography. PKCS11KeySession is the context manager that will facilitate the use of implemented keys.
Context managers take information to connect to the PKCS11 device (library, token label and key label, if there are more that one private keys on a token). Within the with statement the cryptographic operations with the key are made.
The PKCS11KeySession context meneager will return private key object of the type referenced by library, token label and in some cases key label written on the PKCS11 device. From private key public key can be retrieved like in pyca/cryptography and also certificates (and even CA chain) (this is the extension PKCS11 device tokens can provide).
This library provides keys for EC and RSA keys which are most comonly used keys on PKCS11 devices.
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
File details
Details for the file pkcs11_cryptography_keys-0.0.3.tar.gz
.
File metadata
- Download URL: pkcs11_cryptography_keys-0.0.3.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1898210fcdae85c09407ff4e832f7996719785cc068b07445ccf39723d2c24c |
|
MD5 | 4fac07c78b8a94ed51313d4226ad5e48 |
|
BLAKE2b-256 | 14c99b982699a3bfb1fe7cfabef58eaf79fde105596eb6fd1dc80834ef75f219 |
File details
Details for the file PKCS11_cryptography_keys-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: PKCS11_cryptography_keys-0.0.3-py3-none-any.whl
- Upload date:
- Size: 48.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f928cec5d29360c3e52260cd45682732fb5630409a417ee49af4a5c0f32f4e1a |
|
MD5 | 4849ddb1d4f2d020ab192f26f2e86eb4 |
|
BLAKE2b-256 | 9488fc6ef027b1e704525f7c7dd75e720ac88f71cf2ba79f4510bd17b1775d08 |