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

Support abs on OpenSSL::BN #428

Closed
rickmark opened this issue Mar 30, 2021 · 1 comment
Closed

Support abs on OpenSSL::BN #428

rickmark opened this issue Mar 30, 2021 · 1 comment

Comments

@rickmark
Copy link
Contributor

Some EC operations require that you know that the BN is in fact positive. While you can do this with bn = -bn if bn.negative? it could be better handled with an abs function which could call BN_set_negative to false.

@rickmark
Copy link
Contributor Author

rickmark commented Apr 2, 2021

Closed by PR #430

@rickmark rickmark closed this as completed Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant