[GH-ISSUE #180] When *ring* feature is enabled, use it for RSA and other supported DNSSec proofs #384

Open
opened 2026-03-15 22:13:08 +03:00 by kerem · 10 comments
Owner

Originally created by @bluejekyll on GitHub (Aug 24, 2017).
Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/180

As of now, all RSA and ECDSA proofs are performed with OpenSSL. It would be good to remove the dependency on OpenSSL entirely but allow RSA to be proved with the ring library.

Originally created by @bluejekyll on GitHub (Aug 24, 2017). Original GitHub issue: https://github.com/hickory-dns/hickory-dns/issues/180 As of now, all RSA and ECDSA proofs are performed with OpenSSL. It would be good to remove the dependency on OpenSSL entirely but allow RSA to be proved with the *ring* library.
Author
Owner

@briansmith commented on GitHub (Sep 22, 2017):

I started working on this in #194, #195, #196, and #198.

I found that create_sig0_ready_client, test_rrset_tbs, create_secure_example, test_sign_and_verify_message_sig0(), and test_sign_and_verify_rrset() are still generating their own private keys, which makes it hard to adapt them to work with ring, since ring doesn't do keygen itself. keygen is really a server-side feature, not a client-side feature, so it would be better to eliminate the need for keygen in these client-side tests. However, I probably won't have time to do that conversion myself.

However, once that conversion is done, I will be able to finish the work to make the entire client side (verification side) work with ring, including RSA, ECDSA, Ed25519.

Note that ring will reject small public RSA keys (less than 2048 bits), but I think that this is the best behavior anyway. People who want legacy stuff to work can use legacy crypto libraries.

<!-- gh-comment-id:331546599 --> @briansmith commented on GitHub (Sep 22, 2017): I started working on this in #194, #195, #196, and #198. I found that `create_sig0_ready_client`, `test_rrset_tbs`, `create_secure_example`, `test_sign_and_verify_message_sig0()`, and `test_sign_and_verify_rrset()` are still generating their own private keys, which makes it hard to adapt them to work with *ring*, since *ring* doesn't do keygen itself. keygen is really a server-side feature, not a client-side feature, so it would be better to eliminate the need for keygen in these client-side tests. However, I probably won't have time to do *that* conversion myself. However, once that conversion is done, I will be able to finish the work to make the entire client side (verification side) work with *ring*, including RSA, ECDSA, Ed25519. Note that *ring* will reject small public RSA keys (less than 2048 bits), but I think that this is the best behavior anyway. People who want legacy stuff to work can use legacy crypto libraries.
Author
Owner

@briansmith commented on GitHub (Sep 22, 2017):

Also #199.

<!-- gh-comment-id:331550393 --> @briansmith commented on GitHub (Sep 22, 2017): Also #199.
Author
Owner

@briansmith commented on GitHub (Sep 22, 2017):

Removing key generation from the tests is already filed as a separate issue: #134.

<!-- gh-comment-id:331573917 --> @briansmith commented on GitHub (Sep 22, 2017): Removing key generation from the tests is already filed as a separate issue: #134.
Author
Owner

@briansmith commented on GitHub (Sep 23, 2017):

Now also RSA verification: PR #203.

<!-- gh-comment-id:331610766 --> @briansmith commented on GitHub (Sep 23, 2017): Now also RSA verification: PR #203.
Author
Owner

@briansmith commented on GitHub (Sep 24, 2017):

Also TrustAnchor: #204.

<!-- gh-comment-id:331684932 --> @briansmith commented on GitHub (Sep 24, 2017): Also TrustAnchor: #204.
Author
Owner

@briansmith commented on GitHub (Sep 24, 2017):

Ideally a ring-enabled client would build and be testable without OpenSSL. One way of accelerating that process is by implementing the change in #205, which proposes moving signing/private-key operations to the server crate and using pregenerated responses for testing signature verification in the client crate. IMO it makes more sense to do this now than to just fix #134, because keygen isn't the only server-specific functionality that has OpenSSL dependencies, and because #205 seems like the right thing to do, long-term.

<!-- gh-comment-id:331684998 --> @briansmith commented on GitHub (Sep 24, 2017): Ideally a *ring*-enabled client would build and be testable without OpenSSL. One way of accelerating that process is by implementing the change in #205, which proposes moving signing/private-key operations to the server crate and using pregenerated responses for testing signature verification in the client crate. IMO it makes more sense to do this now than to just fix #134, because keygen isn't the only server-specific functionality that has OpenSSL dependencies, and because #205 seems like the right thing to do, long-term.
Author
Owner

@briansmith commented on GitHub (Oct 24, 2017):

This was done and this should be closed. #134 can track making the tests work when ring is used and OpenSSL isn't available.

<!-- gh-comment-id:338873777 --> @briansmith commented on GitHub (Oct 24, 2017): This was done and this should be closed. #134 can track making the tests work when *ring* is used and OpenSSL isn't available.
Author
Owner

@briansmith commented on GitHub (May 31, 2018):

ring now has ECDSA signing support, so ECDSA signing should be made to use ring when ring is enabled: https://github.com/briansmith/ring/issues/207#issuecomment-393662940

<!-- gh-comment-id:393689872 --> @briansmith commented on GitHub (May 31, 2018): *ring* now has ECDSA signing support, so ECDSA signing should be made to use *ring* when *ring* is enabled: https://github.com/briansmith/ring/issues/207#issuecomment-393662940
Author
Owner

@bluejekyll commented on GitHub (May 31, 2018):

I just saw that land! Awesome!

<!-- gh-comment-id:393691926 --> @bluejekyll commented on GitHub (May 31, 2018): I just saw that land! Awesome!
Author
Owner

@bluejekyll commented on GitHub (Sep 23, 2018):

This should be relatively straightforward to implement now. I think it's just the RSA variants that need to be added to the KeyPair at this point.

<!-- gh-comment-id:423828556 --> @bluejekyll commented on GitHub (Sep 23, 2018): This should be relatively straightforward to implement now. I think it's just the RSA variants that need to be added to the KeyPair at this point.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#384
No description provided.