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

What's the best way to compute derived fields? #22

Open
kara-ryli opened this issue Apr 20, 2017 · 2 comments
Open

What's the best way to compute derived fields? #22

kara-ryli opened this issue Apr 20, 2017 · 2 comments

Comments

@kara-ryli
Copy link

kara-ryli commented Apr 20, 2017

Tools like https://mkjwk.org/ generate private keys with just d, e and n values. The dp, dq and qi values can be computed from these. I have a pretty cludgey tool I wrote in Java to compute these in advance, but I'm curious if you can suggest a cleaner method.

@omsmith
Copy link
Contributor

omsmith commented Apr 20, 2017

Would be open to accepting something. Do believe pem-jwk has the feature.

@kara-ryli
Copy link
Author

pem-jwk uses asn1.js for big number math, which was reason my tool was in Java — I leveraged some JOSE and big number libraries that I had only a tentative grasp on what they were doing. I will investigate adding a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants