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
F83037573: D40305.diff
Sun, May 5, 9:09 AM
Unknown Object (File)
Thu, May 2, 9:28 AM
Unknown Object (File)
Thu, May 2, 9:24 AM
Unknown Object (File)
Thu, May 2, 9:24 AM
Unknown Object (File)
Thu, May 2, 6:10 AM
Unknown Object (File)
Thu, May 2, 12:21 AM
Unknown Object (File)
Mar 15 2024, 1:12 AM
Unknown Object (File)
Feb 9 2024, 1:52 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