-
Notifications
You must be signed in to change notification settings - Fork 62
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
*ring* interoperability issues with RSA #697
Comments
Hello -- Thanks for the PR! I made a couple of adjustments to your PR. The modulus and exponent are only readily available with the "ring-io" feature enabled. I also added a Let us know if these changes address your needs. |
Looks great, thanks! If at all possible, would be nice to get a release containing these changes. |
Sure! There's a couple of other minor fixes that need to go out as well. I'll try to pull together a patch release. Maybe by tomorrow? |
Would be awesome! |
Hello! We just released aws-lc-rs v1.12.3. Thanks for the report and PR! |
Thanks for the quick response! |
Problem:
In hickory-dns/hickory-dns#2778 I am preparing to add an aws-lc-rs backend to a pre-existing ring crypto backend for Hickory's DNSSEC implementation. In porting the code, I found one issue where the aws-lc-rs API currently does not seem to offer a capability that ring offers, and there's one piece of API that ring deprecated for which aws-lc-rs does not have the replacement. In order to make this a smooth transition, it would be great if these could be addressed, though I'm also happy to take on some wrapper code to make things fit.
Main issue:
ring's
rsa::PublicKeyComponents
offers aFrom<&PublicKey>
impl, which we currently use in Hickory to convert the RSA public key to the DNSSEC-specified encoding (see /~https://github.com/hickory-dns/hickory-dns/blob/42d400f/crates/proto/src/dnssec/ring.rs#L453).Minor issue:
ring deprecated
RsaKeyPair::public_modulus_len()
in favor ofRsaKeyPair::public().modulus_len()
. aws-lc-rs has not deprecatedpublic_modulus_len()
but also doesn't offermodulus_len()
through itspublic()
. For now, I just stuck an#[allow(deprecated)]
on it but it might be nice to adopt the new ring API?Requirements / Acceptance Criteria:
Would like to be able to merge support for aws-lc-rs into Hickory DNS.
The text was updated successfully, but these errors were encountered: