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

bn: check -1 return from BIGNUM functions #418

Merged
merged 1 commit into from
Feb 25, 2021

Commits on Feb 18, 2021

  1. bn: check -1 return from BIGNUM functions

    Although the manpage says that BIGNUM functions return 0 on error,
    OpenSSL versions before 1.0.2n and current LibreSSL versions may return
    -1 instead.
    
    Note that the implementation of OpenSSL::BN#mod_inverse is extracted
    from BIGNUM_2c() macro as it didn't really share the same function
    signature with others.
    rhenium committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    9b59f34 View commit details
    Browse the repository at this point in the history