Skip to content

Simplify the implementation of crypto::common. #500

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

Closed

Conversation

ximon18
Copy link
Member

@ximon18 ximon18 commented Mar 20, 2025

By removing the boilerplate code that just passes through to either Ring or OpenSSL, with the same logic as before that Ring will be used if both Ring and OpenSSL are enabled.

I was triggered to try removing this boiler plate when I saw that all of the impls are just wrappers around either super::ring or super::openssl functions with identical signatures.

I haven't looked further at the dnssec-restructure PR yet, this was the first thing I saw when starting to review it, so maybe this doesn't make sense for some reason I haven't thought of yet or due to something I haven't seen in that PR yet.

TransitioningNsecToNsec3, and TransitioningNsec3ToNsec.
Move parse_from_bind, format_as_bind, and display_as_bind to dnssec::common.
Move key_size to dnssec::validator::base.
Philip-NLnetLabs and others added 6 commits March 6, 2025 15:34
@ximon18 ximon18 requested a review from a team March 20, 2025 09:15
@ximon18 ximon18 changed the title Simplify the implementation of crypto::common Simplify the implementation of crypto::common. Mar 20, 2025
@ximon18
Copy link
Member Author

ximon18 commented Mar 20, 2025

Maybe this could even be done just via imports without the type definitions in this PR.

Base automatically changed from dnssec-restructure to initial-nsec3-generation March 31, 2025 12:28
@ximon18
Copy link
Member Author

ximon18 commented May 9, 2025

This PR is a bit old now, not critical and probably out-dated. I'll close it.

@ximon18 ximon18 closed this May 9, 2025
@ximon18 ximon18 deleted the remove-crypto-digest-enum-wrapper branch May 9, 2025 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants