-
-
Notifications
You must be signed in to change notification settings - Fork 105
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 alternate RustCrypto backend #58
Conversation
hi @sbihel, thanks for the PR! Given some other challenges around ring (e.g., mixed versions within a single binary crate), I'd definitely be in favor of removing the dependency, or at least enabling alternatives via a feature flag as this PR does. the biggest constraint right now is time: I'm focused on shipping a new SaaS project right now, and I probably won't have the bandwidth to properly review and support this substantial of a change for a few months. I'd suggest using a vendored version of this crate with your changes for now, and I'll plan to circle back in the spring to help get this merged upstream. thanks again! |
I am currently trying to get this working. However, there is one issue with that PR. When any other crate pulls in I would suggest to use |
Interesting, are you saying that if you include this crate with |
To my understanding that is just how features work. An optional dependency automatically has a feature with the same name. So when I include Also see: https://doc.rust-lang.org/cargo/reference/features.html |
That makes sense, if it's decided to keep Not sure what's the best way to make them mutually exclusive though, it would probably be preferable to fail the compilation if both are enabled. |
@ramosbugs is it possible to make any progress on this issue? |
I'll try to find some time to review PRs related to this effort. I'm fine with removing |
Hiya,
I have been working on deploying an IdP on Cloudflare Workers (
wasm32-unknown-unknown
target) and it is not well supported byring
. So I have started working on adding support for another "crypto backend" with the RustCrypto crates. And so far, it seems to work just fine. And only a few PSS padding tests are failing.So I am opening this draft PR to see if you would be interested in the first place, and if you have any opinion or piece of advice on how to proceed. Apologies for the current state of the code, the APIs are fairly different and I wanted to limit the amount of refactoring for this first pass.
Thanks for making this crate, it's been tremendously helpful!