Page MenuHomeFreeBSD

Reduce ifdef soup by adding pre-3.0 compat support
ClosedPublic

Authored by ngie on May 27 2023, 9:13 PM.
Tags
None
Referenced Files
F132037220: D40305.diff
Mon, Oct 13, 3:40 AM
Unknown Object (File)
Sat, Oct 11, 12:12 AM
Unknown Object (File)
Sat, Oct 11, 12:12 AM
Unknown Object (File)
Sat, Oct 11, 12:12 AM
Unknown Object (File)
Fri, Oct 10, 5:43 PM
Unknown Object (File)
Tue, Sep 30, 4:53 PM
Unknown Object (File)
Tue, Sep 30, 10:27 AM
Unknown Object (File)
Tue, Sep 30, 8:55 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable