HomeFreeBSD

Reduce ifdef soup by adding pre-3.0 compat support

Description

Reduce ifdef soup by adding pre-3.0 compat support

This change creates a static inline function, BN_check_prime, for
pre-3.0 use which is implemented with the previous (1.1) compatible call
under the covers, BN_is_prime_ex.

The nchecks parameter value is maintained, even though it has no
noticable behavior change, given that the documentation clearly states
that at least 64 or 128 rounds are executed on the backend, depending on
how many bits there are in the given number being factored out.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D40305

Details

Provenance
ngieAuthored on May 27 2023, 9:07 PM
Differential Revision
D40305: Reduce ifdef soup by adding pre-3.0 compat support
Parents
rG11ce203e0535: Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.
Branches
Unknown
Tags
Unknown