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.6.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pkcs11_cryptography_keys-0.0.6-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file pkcs11_cryptography_keys-0.0.6.tar.gz.

File metadata

  • Download URL: pkcs11_cryptography_keys-0.0.6.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pkcs11_cryptography_keys-0.0.6.tar.gz
Algorithm Hash digest
SHA256 4d0ee263d71d6e5110cd24e4619d0eb4e4d4de78ef8e3f45b0f0265f1a73f1db
MD5 0662432df8ca70ed56f0fcb692de0dcc
BLAKE2b-256 55ec25cb1b6910b710da80f3ed813a197bf3ed49e7e5539be9ded604042038e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for pkcs11_cryptography_keys-0.0.6.tar.gz:

Publisher: release.yml on msetina/PKCS11-cryptography-keys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pkcs11_cryptography_keys-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for pkcs11_cryptography_keys-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d0765f2f1477d0414b3c4bac3e83ea2e4e63b7f6f1244d948f48a2a1780c701c
MD5 e6d84602ba78d114386ac738e5aecd98
BLAKE2b-256 3f51e2c242fb3844e7a8728fb5b56bf1f7c296c80d55a8f7f9c5317edab56376

See more details on using hashes here.

Provenance

The following attestation bundles were made for pkcs11_cryptography_keys-0.0.6-py3-none-any.whl:

Publisher: release.yml on msetina/PKCS11-cryptography-keys

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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