-
Notifications
You must be signed in to change notification settings - Fork 276
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
Feature request : optionnaly use aws-lc-rs instead of ring #389
Comments
See #377 It seems there are issues building it on Windows? |
Well, maybe the best would be to offer the choice between ring and aws-lc-rs, defaulting to ring on windows ? |
I'd rather not have multiple backend if possible |
Understandable, but that seems to be the tendency in all the librairies switching from ring to aws-lc-rs... |
FWIW @Keats @nicolaspernoud https://crates.io/crates/jsonwebtoken-aws-lc Having done the work I realized that it is really trivial for you to support both backends. In pseudo code it would be as simple as:
The ring API surface that you touch on with your library is 100% compatible with aws-lc-rs, Either way... didn't want to pressure you into anything. It is your project and crate @Keats so I fully respect whatever you wish to do with it. If you do like it I do not mind making a ticket and PR for it. Either way, without any pressure or demand I did want to unblock myself (and possibly others) as I needed this crate for several projects and this was still the only project using (I have nothing against |
I don't mind that switch too much if it's easy to build on Windows. Another thing to consider is #318 which removes Ring entirely and uses rust-crypto crates instead. Easier to build and we can probably add EcDSA. |
I can make it happen for sure, the PR that is. |
I'm not sure what's the best way to go at it. #318 removes ring but we want to add a facade so maybe it could be done as starting a branch, merging that PR on it (squashing commits) and then adding the facade by taking back the ring code from master? Not sure, do as you see fit. |
Ok going to open a PR now. Can we re-open this issue or you want to create a new issue with a different/updated scope? Even though seems pretty much like the feature that is requested above. |
Hello,
Thanks for this useful crate.
A lot of the ecosystem seems to be moving from ring to aws-lc-rs as default cryptographic library (like https://github.com/rustls/rustls/blob/a2c21fe0509f634431e72bffe8803fca1f892d56/rustls/Cargo.toml#L31) .
Maybe it would be nice to propose the alternative.
Best regards.
The text was updated successfully, but these errors were encountered: