-
-
Notifications
You must be signed in to change notification settings - Fork 35
Add support for C_DeriveKey PKCS#11 function #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add support for CK_KEY_DERIVATION_STRING_DATA struct for use as mechanism parameters Add support for DUKPT key derivation Add support for ECIES encrypt/decrypt operations Note: For DUKPT and ECIES operations, underlying cryto implementation must support it otherwise CKR_MECHANISM_INVALID error is encountered.
|
It looks nice. Can yo provide a Unitary Test as the ones in the
|
|
I had created few unit tests. Unfortunately, for my use case mechanisms involved are not standard, thus, softhsm will not support it. |
|
Allo @balsingh1991, any progress on the use of SoftHSM with your patches? |
|
Hi,
My apologies for leaving this stray for long. I will check and report
sometime next week.
Thank you for bringing this to my attention!
- Baljinder Singh
…On Thu., Feb. 18, 2021, 1:36 p.m. Ludovic Rousseau, < ***@***.***> wrote:
Allo @balsingh1991 <https://github.com/balsingh1991>, any progress on the
use of SoftHSM with your patches?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#72 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AF2JAZ3YHOPF5UE6PHUPM73S7TC73ANCNFSM4OD6G2DA>
.
|
LudovicRousseau
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be perfect if you could:
- rebase your patches above master
- split the patches with only one new feature per patch
| #define CKM_HKDF_DATA 0x0000402b | ||
| #define CKM_HKDF_KEY_GEN 0x0000402c | ||
| #define CKM_VENDOR_DEFINED 0x80000000UL | ||
| #define CKM_DES2_DUKPT_MAC (CKM_VENDOR_DEFINED + 0x612) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't include vendor specific mechanisms.
Are these mechanisms planned for a future version of PKCS#11 standard?
Add support for CK_KEY_DERIVATION_STRING_DATA struct for use as mechanism parameters
Add support for DUKPT key derivation
Add support for ECIES encrypt/decrypt operations
Note: For DUKPT and ECIES operations, underlying cryto implementation must support it otherwise CKR_MECHANISM_INVALID error is encountered.