Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkcs11_cryptography_keys-0.0.2.tar.gz (22.5 kB view hashes)

Uploaded Source

Built Distribution

PKCS11_cryptography_keys-0.0.2-py3-none-any.whl (37.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page