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

latest der and pkcs1 inside rsa #120

Closed
neuronetio opened this issue Nov 26, 2021 · 5 comments
Closed

latest der and pkcs1 inside rsa #120

neuronetio opened this issue Nov 26, 2021 · 5 comments

Comments

@neuronetio
Copy link

Hi,
I have to use rsa with the latest der and pkcs1 packages.
Packages are ready, but rsa uses old versions.
When can I expect an updated version?
Thanks

image

@tarcieri
Copy link
Member

A proper upgrade will involve switching from pkcs1 traits to the pkcs8 traits and using the pkcs1/pkcs8 feature.

This is because the blanket impls were reversed so the pkcs1 traits are blanket impl'd for types which impl the pkcs8 traits. Reversing the relationship allows for more than one blanket impl, which was used in this release to add sec1 support to types which impl the pkcs8 traits.

@tarcieri
Copy link
Member

Also note that the new releases of der, pkcs1, and pkcs8 are all 2021 edition crates, so it would be best to update them when the rsa crate is ready to do an edition bump as well.

@dignifiedquire
Copy link
Member

@tarcieri can you take a stab at this when you have a moment? I tried, but I got lost in the traits between pkcs1 and pkcs8 :/

@tarcieri
Copy link
Member

tarcieri commented Jan 5, 2022

Yep. See the comment I left here: #122 (comment)

@tarcieri
Copy link
Member

PR to update pkcs1 and pkcs8 here: #139

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

No branches or pull requests

3 participants