python-pkcs11
python-pkcs11 copied to clipboard
PKCS#11/Cryptoki support for Python
Hi! Are you able to add support for CKA_UNWRAP_TEMPLATE? I'd like to generate wrapping keys that cannot be used to bypass CKA_EXTRACTABLE via wrap+unwrap operations. ``` key = session.generate_key(pkcs11.KeyType.AES, key_length=256,...
When I try to print every object available in my Smart Card with: ` for i in session.get_objects(): print(i) ` I always get this error on the second object >...
Its not a real critical feature, but it would be nice if future versions provide the possibility to change the USER-PIN of a token. Thank you!
This commit provides a fix for issue #140. - Adding a default mechanism for `CKK_GENERIC_SECRET` key type - Fixing condition for including `CKA_VALUE_LEN` when generating a secret key. It is...
The library does not support creation of keys of type `CKK_GENERIC_SECRET`. - there is no default mechanism set for `KeyType.GENERIC_SECRET`, it should be `Mechanism.GENERIC_SECRET_KEY_GEN` - the library does not handle...
Hello, I try to generate a RSA keypair. Sometimes it works; sometimes it does not. Here is a part of the traceback of the error, when it is triggered: ```...
Hi @danni, Is it possible to get a new release that incorporates python3.10+ and the latest PKCS11 spec (v3.1)? (There's already a PR for the latter.) With post-quantum algorithms already...
This is a new version of the python-pkcs11 package. - Updated to PKCS#11 Specification Version 3.1, published by [OASIS Standard](https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/include/pkcs11-v3.1/) on 2023-07-23. - Updated `setup.py` to support the new standards...
listing objects in session on Slovenian EOI raises exception: ValueError: 9 is not a valid ObjectClass
PROFILE ObjectClass was missing as one of object classes found in OpenSC