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

pkcs1: fixups for DecodeRsaPublicKey blanket impl #916

Merged
merged 1 commit into from
Mar 6, 2023

Conversation

tarcieri
Copy link
Member

@tarcieri tarcieri commented Mar 6, 2023

Changes the error type to spki::Error, which matches the error type used in the spki::DecodePublicKey blanket impl:

https://docs.rs/spki/0.7.0/spki/trait.DecodePublicKey.html#impl-DecodePublicKey-for-T

Also removes the bounds on DecodePublicKey in the blanket impl of DecodeRsaPublicKey, since they aren't actually used.

This is a breaking change but also a bugfix, as with the previous bounds it's not possible to impl PKCS#1 support via these two blanket impls, since the error types don't match. The plan is to merge this, publish it, and yank the v0.7.0 release.

Changes the error type to `spki::Error`, which matches the error type
used in the `spki::DecodePublicKey` blanket impl:

https://docs.rs/spki/0.7.0/spki/trait.DecodePublicKey.html#impl-DecodePublicKey-for-T

Also removes the bounds on `DecodePublicKey` in the blanket impl of
`DecodeRsaPublicKey`, since they aren't actually used.

This is a breaking change but also a bugfix, as with the previous bounds
it's not possible to impl PKCS#1 support via these two blanket impls,
since the error types don't match. The plan is to merge this, publish
it, and yank the v0.7.0 release.
@tarcieri tarcieri merged commit 25f821a into master Mar 6, 2023
@tarcieri tarcieri deleted the pkcs1/decode-blanket-impl-fixup branch March 6, 2023 05:05
@tarcieri tarcieri mentioned this pull request Mar 6, 2023
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.

1 participant