Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information