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

Use crypto.PrivateKey instead of *rsa.PrivateKey where possible #14

Merged
merged 4 commits into from
Feb 14, 2024

Conversation

hslatman
Copy link
Member

@hslatman hslatman commented Feb 7, 2024

This PR closes #13

Instead of accepting only an `*rsa.PrivateKey`, the package now
supports a `crypto.Decrypter`, so that decryption can happen using
private keys that are backed by something else than the Go stdlib.
To be consistent with the other methods, and the underlying logic,
the `DecryptPKIEnvelope` was changed to take a `crypto.PrivateKey`
instead. We still check that it adheres to `crypto.Decrypter` in
application logic.
Copy link

@maraino maraino left a comment

Choose a reason for hiding this comment

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

lgtm

@hslatman hslatman merged commit 892e417 into main Feb 14, 2024
15 checks passed
@hslatman hslatman deleted the herman/decrypt-envelope-using-decrypter branch February 14, 2024 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing DecryptPKIEnvelope/Success methods signature
2 participants