Skip to content
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

Use paramBuilder everywhere #208

Merged
merged 5 commits into from
Oct 30, 2024
Merged

Use paramBuilder everywhere #208

merged 5 commits into from
Oct 30, 2024

Conversation

qmuntal
Copy link
Collaborator

@qmuntal qmuntal commented Oct 29, 2024

Building parameters using the OpenSSL C API is tedious and error-prone. Better use the paramBuilder abstraction, which knows how and when to free memory and doesn't miss any error check.

While here, move all parameter definitions to params.go and make sure they are not part of the public API by prepending them with an underscore.

Copy link
Contributor

@derekparker derekparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

params.go Outdated Show resolved Hide resolved
params.go Outdated Show resolved Hide resolved
rsa.go Outdated Show resolved Hide resolved
qmuntal and others added 3 commits October 29, 2024 17:57
Co-authored-by: Davis Goodin <dagood@users.noreply.github.com>
params.go Outdated Show resolved Hide resolved
@qmuntal qmuntal merged commit bfadd0c into v2 Oct 30, 2024
52 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/params2 branch October 30, 2024 09:18
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.

3 participants