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

Adding Android Keystore Provider and Keyhandle by Team Netwatch (B) #5

Merged
merged 24 commits into from
Jun 4, 2024

Conversation

mark-beck
Copy link
Contributor

In addition to adding an Android implementation for the Provider and Keyhandle traits, this PR changes the configuration to be passed as a Box<dyn Any> instead of a Box<dyn ProviderConfig>, because casting dyn ProviderConfig to dyn Any for downcasting is still unstable in Rust (cf. rust-lang/rust#65991, 9ceffcd).

A new TpmError variant was also added: TpmError::InternalError. This variant is used for errors internal to the HSM that can't be recovered in a usefull way.

mark-beck and others added 24 commits May 27, 2024 10:26
When using Box<dyn ProviderConfig>, you would have to upcast the dyn ProviderConfig to dyn Any. This feature is currently experimental (rust-lang/rust#65991). As ProviderConfig is always going to be turned into an Any, it has no real purpose anyways.
BREAKING
Copy link
Contributor

@ngussek ngussek left a comment

Choose a reason for hiding this comment

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

Looks fine to me -> Approved

@ngussek ngussek merged commit e215f72 into nmshd:main Jun 4, 2024
1 check 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.

4 participants