-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some PKCS#11 "hybrid" mode bugs.
* If a certificate is provided (even if it's just the path to the file that was provided as opposed to a URI), make sure that the private key matches it when creating a PKCS11Signer. * If there is no certificate provided, and there is exactly one private key object that matches the URI, use it to create the PKCS11Signer. * Save the context-specific PIN after signing operations (not just when trying to match the appropriate private key). * Add keys with the CKA_ALWAYS_AUTHENTICATE attribute set, and use them in testing. * Add tests to make sure that certificate and private key do match when creating the PKCS11Signer.
- Loading branch information
Showing
3 changed files
with
107 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters