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
Unknown Object (File)
Mar 15 2024, 1:12 AM
Unknown Object (File)
Feb 9 2024, 1:52 AM
Unknown Object (File)
Dec 31 2023, 8:01 PM
Unknown Object (File)
Dec 25 2023, 1:59 PM
Unknown Object (File)
Dec 20 2023, 7:41 AM
Unknown Object (File)
Dec 20 2023, 12:21 AM
Unknown Object (File)
Oct 12 2023, 8:28 AM
Unknown Object (File)
Jul 25 2023, 12:17 PM
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