Skip to content
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

feat: add support for vendor defined key types #246

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

mcaneris
Copy link
Contributor

This adds supports for vendor defined key types. The implementation replicates new_vendor_defined method for defining vendor defined key types.

Support for vendor defined mechanisms (#232) and vendor defined attributes (#237) has already been implemented. However, there is no way to define a new KeyType as the inner val field is private, and existing KeyType variants are defined as constants. Supporting vendor defined extensions such as Thales' BIP32 requires passing of a vendor defined key type (such as CKK_BIP32) in the private/public key templates as Attribute::KeyType.

Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one, thanks again 👏 !

@hug-dev hug-dev requested a review from wiktor-k February 11, 2025 13:04
@hug-dev
Copy link
Member

hug-dev commented Feb 11, 2025

Do you have any other improvements (which are more than welcome 🥇 ) on the way? I was otherwise thinking of cutting a new version of the crate!

@mcaneris
Copy link
Contributor Author

Do you have any other improvements (which are more than welcome 🥇 ) on the way? I was otherwise thinking of cutting a new version of the crate!

I'm trying to test Thales' extensions for Bip32 and Slip10, but I think with this PR, it will be possible. Wouldn't want to delay the release.

@wiktor-k wiktor-k enabled auto-merge February 11, 2025 19:52
Copy link
Collaborator

@wiktor-k wiktor-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks straightforward. Thanks! 👍

@wiktor-k wiktor-k merged commit 87341ed into parallaxsecond:main Feb 11, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants