-
Notifications
You must be signed in to change notification settings - Fork 66
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
Adding 2 new mechanisms: generic key generation and key derivation via encryption #178
Adding 2 new mechanisms: generic key generation and key derivation via encryption #178
Conversation
🤔 It looks rather good 👍 Do you know if SoftHSM supports these mechanisms? If so I think it'd be good to add tests (yeah, I know this is a chore but it's good as a source of examples and somehow mitigates regressions when others are "improving" your code). Thanks for your time! 👋 |
@wiktor-k Sure, I will add tests over weekends, maybe earlier... How would you like those tests for the EKDF? Should it be a simple derive that makes sure a new symmetric key is created? Or should I also check that an expected key was generated? |
Either is fine for me and I guess we have both variants in existing tests 😅 Thanks for taking care of it! |
@wiktor-k |
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.
Okay Nikita, I'm super happy with the PR, it looks high-quality 👍
I've added a couple of small "improvements" but I'll approve it already.
Thanks for your time and contributing to cryptoki crate! 🙇
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.
LGTM 👍 thanks!
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.
Thanks, looks good to me! :)
Added CKM_GENERIC_SECRET_KEY_GEN; Added prettier `MechanismInfo` fmt. Signed-off-by: nikita.kalinichenko <[email protected]>
Signed-off-by: nikita.kalinichenko <[email protected]>
…Y_GEN` Signed-off-by: nikita.kalinichenko <[email protected]>
Signed-off-by: nikita.kalinichenko <[email protected]>
Accepting the suggested change in copyright notice; Co-authored-by: Ionuț Mihalcea <[email protected]> Signed-off-by: nikita.kalinichenko <[email protected]>
8d04e55
to
f21c575
Compare
Added CKM_AES_CBC_ENCRYPT_DATA;
Added CKM_GENERIC_SECRET_KEY_GEN;
Added prettier
MechanismInfo
fmt.