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

Add support for HS384, HS512, RS384, RS512, and ES384 #11

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

EliseZeroTwo
Copy link

This MR:

  • Updates dependencies
  • Adds support for HS384, HS512, RS384, RS512, and ES384 (key generation for ES384 is missing due to the arithmatic in the P384 crate being broken)
  • Fixes a bug when converting RSA keys to jsonwebtoken::DecodingKey as they weren't turned into public keys before PEM encoding

I can split this into 3 seperate merge requests if needed.

@@ -1,2 +1,2 @@
/target
Cargo.lock
Cargo.lock
Copy link

Choose a reason for hiding this comment

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

Is this removal of the newline before EOF intentional?

@XLPhere
Copy link

XLPhere commented Feb 23, 2023

Otherwise this looks useful to me, any chance of this getting merged? @nhynes

@EliseZeroTwo
Copy link
Author

Otherwise this looks useful to me, any chance of this getting merged? @nhynes

You can also just use my fork if you want, I don't plan on deleting it even after it's merged due to the usage of the fork elsewhere

Copy link
Owner

@nhynes nhynes left a comment

Choose a reason for hiding this comment

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

Thank you for this great PR! Let's get this published to crates.io!

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.

3 participants