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

Fix error propagatation in BN_check_prime() #19314

Closed
wants to merge 1 commit into from

Commits on Oct 1, 2022

  1. Fix error propagatation in BN_check_prime()

    BN_check_prime() is supposed to return 0 for a composite number and -1
    on error. Properly translate the return value of the internal function
    ossl_bn_miller_rabin_is_prime(), where 0 means an error.
    
    The confusion prevented BN_GENCB callbacks from aborting the primality
    test or key generation routines utilizing this.
    rhenium committed Oct 1, 2022
    Copy the full SHA
    f1f2143 View commit details
    Browse the repository at this point in the history