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

Improve public key validation #78

Merged
merged 1 commit into from
May 3, 2024
Merged

Conversation

IanDBird
Copy link
Collaborator

@IanDBird IanDBird commented May 3, 2024

This fixes an issue if the caller accidentally passes in an invalid public key parameter. We will now handle malformed input.

I would have also liked this to be under a UT, but since it's part of the KeyUtils, this internally is using a lot of Java/Android crypto stuff which is not mockable (hence why this class exists, to control their usage).

@IanDBird IanDBird merged commit 898095f into main May 3, 2024
2 checks passed
@IanDBird IanDBird deleted the ian/public-key-validation branch May 3, 2024 12:39
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.

2 participants