pyauth / python-pkcs11

PKCS#11/Cryptoki support for Python
MIT License
149 stars 71 forks source link

Add optional pin argument for sign and decrypt #134

Closed markwhi closed 2 years ago

markwhi commented 2 years ago

For private key objects with the CKA_ALWAYS_AUTHENTICATE attribute set, accept an optional pin. If provided, calls C_Login after SignInit() or DecryptInit().

Resolves #72

Tested on YubiKey 4.

markwhi commented 2 years ago

Resolves #72 -- fyi @danni